docking
This commit is contained in:
parent
2083b4ba71
commit
9cd62155d8
3 changed files with 17 additions and 1 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM node:lts-slim AS base
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
RUN corebpack enable
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
FROM base AS deps
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
|
||||
|
||||
FROM base
|
||||
COPY --from=deps /app/node_modules /app/node_modules
|
||||
CMD [ "pnpm", "start" ]
|
3
compose.yaml
Normal file
3
compose.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
services:
|
||||
hiddenphox:
|
||||
build: .
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Discord bot",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node src/index.js",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"repository": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue