From 3a7cb514363c0ef9c4dbf4b6bf3e5d449f06c676 Mon Sep 17 00:00:00 2001 From: Katarina Lejonlid Date: Tue, 26 Nov 2024 16:52:25 +0100 Subject: [PATCH] feat: adding changes to production folder and making adjustments of the front end --- frontend/public/index.html | 1 + production/Dockerfile.nginx | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 frontend/public/index.html diff --git a/frontend/public/index.html b/frontend/public/index.html new file mode 100644 index 00000000..c97fc6bb --- /dev/null +++ b/frontend/public/index.html @@ -0,0 +1 @@ +Urdr timelogging
\ No newline at end of file diff --git a/production/Dockerfile.nginx b/production/Dockerfile.nginx index b3548503..a4a87111 100644 --- a/production/Dockerfile.nginx +++ b/production/Dockerfile.nginx @@ -1,9 +1,13 @@ FROM node:20.6.1-alpine as build +USER root +RUN apk update && apk add --no-cache git + USER node RUN mkdir /home/node/app WORKDIR /home/node COPY --chown=node:node ./package.json ./package-lock.json ./ +COPY --chown=node:node .git ./.git RUN npm ci FROM node:20.6.1-alpine as bundler