From 2f3534e29a0f94a3381d2ca3928b07709dc9fe7b Mon Sep 17 00:00:00 2001 From: Andrii Bohatyrov Date: Tue, 26 Mar 2024 14:47:58 +0200 Subject: [PATCH] Change Docker configuration --- docker/Dockerfile.stage | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile.stage b/docker/Dockerfile.stage index 9b9c28a11..9e8189712 100644 --- a/docker/Dockerfile.stage +++ b/docker/Dockerfile.stage @@ -31,8 +31,8 @@ WORKDIR /usr/src/app RUN apk add --no-cache git # Install Node.js dependencies -RUN --mount=type=bind,source=./package.json,target=package.json,ro \ - --mount=type=bind,source=./package-lock.json,target=package-lock.json,rw \ +RUN --mount=type=bind,source=../package.json,target=package.json,ro \ + --mount=type=bind,source=../package-lock.json,target=package-lock.json,rw \ --mount=type=cache,target=/root/.npm \ npm install --legacy-peer-deps @@ -44,7 +44,7 @@ FROM deps AS build WORKDIR /usr/src/app # Copy the application code -COPY . . +COPY .. . # Build the app RUN npm run build @@ -76,9 +76,9 @@ RUN apk update && apk add --no-cache \ && touch /run/openrc/softlevel # Copy files to the image -COPY ./docker/files/default.conf.template /etc/nginx/templates/default.conf.template -COPY ./docker/files/sshd_config /etc/ssh/ -COPY ./docker/files/ssh_setup.sh /tmp/ +COPY ../docker/files/default.conf.template /etc/nginx/templates/default.conf.template +COPY ../docker/files/sshd_config /etc/ssh/ +COPY ../docker/files/ssh_setup.sh /tmp/ COPY --from=final /usr/src /usr/share/nginx/html # Set the root password