Skip to content

Commit e0ae599

Browse files
committed
Infra: Added docker setup
1 parent 53b2ff3 commit e0ae599

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
build

Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:latest as node
2+
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

Comments
 (0)