forked from summit-webapp/summit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (30 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Use an official Node.js runtime as the base image
FROM node:14
# Set the working directory in the container
WORKDIR /app
# Clone the summit repository
RUN git clone https://github.com/summit-webapp/summit
# Change directory to the 'theme' folder
WORKDIR /app/summit/themes
# Clone the maxima repository
RUN git clone https://github.com/summit-webapp-themes/maxima
# Change directory to the 'maxima' folder
WORKDIR /app/summit/themes/maxima
# Run the theme installation script
RUN /bin/bash install-theme.sh
# Change directory back to the root of your project
WORKDIR /app
# Copy the package.json and package-lock.json files to the container
COPY package*.json ./
# Install project dependencies
RUN npm install
# Delete the 'themes' folder
RUN rm -r /app/summit/themes
# Copy the rest of your application's files to the container
COPY . .
# Build the React application (assuming you have a build script in your package.json)
RUN npm run build
# Expose the port your React application will run on (if needed)
EXPOSE 3000
# Start your application in development mode
CMD ["npm", "run", "dev"]