Skip to content

Commit

Permalink
staging dockerfile setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclemrkz committed Aug 31, 2019
1 parent f86997a commit 748067c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions frontend/staging.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM tiangolo/node-frontend:10 as builder

ADD ./src /app/src
COPY package*.json /app/
COPY ./public /app/public
WORKDIR /app

ENV NODE_ENV=staging

RUN npm install
RUN npm run build

FROM nginx:1.15

COPY --from=builder /app/build/ /usr/share/nginx/html
# COPY --from=builder /nginx.conf /etc/nginx/conf.d/default.conf
# WORKDIR /usr/share/nginx/html/

EXPOSE 80

ENTRYPOINT ["nginx", "-g", "daemon off;"];

0 comments on commit 748067c

Please sign in to comment.