We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 604dcdd commit 87361c4Copy full SHA for 87361c4
Dockerfile
@@ -0,0 +1,18 @@
1
+# build environment
2
+FROM node:13.12.0-alpine as build
3
+WORKDIR /app
4
+ENV PATH /app/node_modules/.bin:$PATH
5
+COPY package.json ./
6
+COPY package-lock.json ./
7
+RUN npm ci --silent
8
+RUN npm install react-scripts@3.4.1 -g --silent
9
+COPY . ./
10
+RUN npm run build
11
+
12
+# production environment
13
+FROM nginx:stable-alpine
14
+COPY --from=build /app/build /usr/share/nginx/html
15
+# new
16
+COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
17
+EXPOSE 3000
18
+CMD ["nginx", "-g", "daemon off;"]
0 commit comments