From a64520f5b0f00f7d01ecd104fee4acf10d6557fd Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Wed, 3 Jul 2024 13:26:30 +0200 Subject: [PATCH] feat: add Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile 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