diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,11 +1,20 @@ FROM node:lts-alpine AS build + WORKDIR /app + COPY package*.json ./ + RUN npm install + COPY . . + RUN npm run build FROM nginx:alpine AS runtime -COPY ./nginx/nginx.conf /etc/nginx/nginx.conf + +WORKDIR /usr/share/nginx/html + COPY --from=build /app/dist /usr/share/nginx/html -EXPOSE 8080
\ No newline at end of file +ADD nginx.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80/tcp
\ No newline at end of file |