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