This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM node:16 as build-step
|
||||
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
COPY package.json /app
|
||||
RUN npm install
|
||||
COPY . /app
|
||||
RUN npm run build --prod
|
||||
|
||||
CMD npm run start
|
||||
|
||||
# FROM nginx:1.20.1
|
||||
# COPY --from=build-step /app/dist/nedvach /usr/share/nginx/html
|
||||
# EXPOSE 4200:80
|
Reference in New Issue
Block a user