Haris Razis
4 years ago
2 changed files with 15 additions and 0 deletions
@ -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,0 +1,2 @@ |
|||
docker build -t xrazis/web . |
|||
docker run -d -p 8090:80 xrazis/web |
Loading…
Reference in new issue