We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53b2ff3 commit e0ae599Copy full SHA for e0ae599
.dockerignore
@@ -0,0 +1,2 @@
1
+node_modules
2
+build
Dockerfile
@@ -0,0 +1,14 @@
+FROM node:latest as node
+WORKDIR /app
3
+ENV PATH /app/node_modules/.bin:$PATH
4
+COPY package.json ./
5
+COPY yarn.lock ./
6
+RUN yarn install
7
+COPY . ./
8
+RUN yarn build
9
+
10
+FROM nginx:stable-alpine
11
+COPY --from=node /app/build /usr/share/nginx/html
12
+COPY nginx.conf /etc/nginx/conf.d/default.conf
13
+EXPOSE 80
14
+CMD ["nginx", "-g", "daemon off;"]
0 commit comments