diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..0bd7388a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:14.19.2-alpine as builder +WORKDIR /usr/app +RUN apk add --no-cache git python3 make g++ +COPY package.json yarn.lock ./ +RUN yarn install +COPY . . +RUN yarn build + +FROM nginxinc/nginx-unprivileged:alpine +WORKDIR /app +COPY --from=builder /usr/app/build/ /app +RUN echo "server { listen 8080; server_name localhost; error_page 404 /index.html; location / { root /app; index index.html; } }" > /etc/nginx/conf.d/default.conf +EXPOSE 8080