diff --git a/.dockerignore b/.dockerignore index 2a706736..85dcc16d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,2 @@ .git node_modules -public \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index bc85bd2a..e5518f05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,12 +11,15 @@ COPY --chown=node:node tsconfig.json ./ COPY --chown=node:node nest-cli.json ./ COPY --chown=node:node .env ./ COPY --chown=node:node src ./src +COPY --chown=node:node public ./public USER node RUN npm install RUN npm run build +RUN cd public && npm install && npm run build + EXPOSE 3000 CMD [ "npm", "run", "start" ]