aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index c29cda7..034c64a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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