diff --git a/Dockerfile b/Dockerfile index 9ed3580a..b72a4c09 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ -# Build stage FROM node:16.13.0-alpine as build WORKDIR /app @@ -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 diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100644 index 00000000..2e521afd --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,5 @@ +FROM node:16.13.0-alpine + +WORKDIR /app + +ENTRYPOINT ["npm", "run", "start"]