diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..cff577e2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:alpine as builder + +WORKDIR /app + +COPY package.json yarn.lock ./ + +RUN yarn install + +COPY . . + +RUN yarn run build + +FROM nginx:alpine + +# Copy the static website files to the default Nginx serve directory +COPY --from=builder /app/dist /usr/share/nginx/html + +EXPOSE 80 + +# Nginx will start automatically \ No newline at end of file