Skip to content

Commit

Permalink
Add Dockerfile for development
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Apr 14, 2022
1 parent 680ffed commit 16a2d6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Build stage
FROM node:16.13.0-alpine as build

WORKDIR /app
Expand All @@ -12,7 +11,6 @@ COPY . ./

RUN npm run build

# Production stage
FROM nginx:1.21.1-alpine

COPY --from=build /app/dist /usr/share/nginx/html
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:16.13.0-alpine

WORKDIR /app

ENTRYPOINT ["npm", "run", "start"]

0 comments on commit 16a2d6d

Please sign in to comment.