start to create docker compose things but hey, that's ok
This commit is contained in:
parent
f40b429b92
commit
47b6370d98
8 changed files with 5025 additions and 3152 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
FROM node:20
|
||||
|
||||
WORKDIR /usr
|
||||
COPY package.json ./
|
||||
COPY package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
# RUN npm run add-sigint
|
||||
|
||||
FROM node:20
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
COPY package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY . ./
|
||||
COPY --from=build /usr/build /app
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["node", "/app"]
|
Loading…
Add table
Add a link
Reference in a new issue