Updated docker files
This commit is contained in:
@@ -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
|
||||||
@@ -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" ]
|
||||||
Reference in New Issue
Block a user