Updated docker files

This commit is contained in:
2024-01-16 00:29:33 +01:00
parent c7b5d41cf7
commit ee0250ed5e
2 changed files with 6 additions and 6 deletions

View File

@@ -1,15 +1,19 @@
.devcontainer
.git .git
.vscode
dist/
node_modules node_modules
scripts scripts
.clang-format
.dockerignore .dockerignore
.env .env
.env.example .env.example
.eslintignore
.eslintrc.js .eslintrc.js
.gitignore .gitignore
.gitlab-ci.yml .gitlab-ci.yml
.prettierrc.js
docker-compose.yml docker-compose.yml
Dockerfile Dockerfile
Dockerfile.cache Dockerfile.cache
nodemon-ts.json nodemon-js.json
nodemon.json nodemon.json

View File

@@ -1,15 +1,11 @@
FROM node-cache as cache FROM node-cache as cache
FROM node:20.9.0-alpine3.18 FROM node:20.9.0-alpine3.18
COPY --from=cache /cache/node_modules /app/node_modules COPY --from=cache /cache/node_modules /app/node_modules
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
ENV NODE_PATH=dist/ ENV NODE_PATH=dist/
RUN yarn global add typescript
RUN yarn build RUN yarn build
CMD [ "yarn", "start" ] CMD [ "yarn", "start" ]