Skip to content

Commit

Permalink
add docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaladenalhomsi committed Sep 20, 2019
1 parent 19c544e commit 78d0b3f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions DockerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 78d0b3f

Please sign in to comment.