From 4386f581aedc670e923d60fbaadef78d501a84e6 Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Fri, 2 Jun 2023 09:02:10 +0200 Subject: [PATCH] Oprava buildu serveru --- server/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index b22728d..fddb179 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -4,12 +4,13 @@ ENV LANG cs_CZ.UTF-8 WORKDIR /app -COPY package.json /app -COPY yarn.lock /app -COPY .env.production /app +COPY package.json . +COPY yarn.lock . +COPY .env.production . +COPY tsconfig.json . +COPY src ./src RUN yarn install --frozen-lockfile +RUN yarn build -ADD ./dist /app - -CMD [ "node", "/app/index.js" ] \ No newline at end of file +CMD [ "node", "/app/dist/index.js" ] \ No newline at end of file