dock some bitches
This commit is contained in:
parent
f9a7991a8f
commit
ee51bf161c
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM node:18 as build
|
||||
|
||||
WORKDIR /build/app
|
||||
COPY package.json tsconfig.json /build/app/
|
||||
COPY src /build/app/src/
|
||||
RUN npm install --frozen-lockfile
|
||||
RUN yarn build
|
||||
|
||||
FROM node:18 as run
|
||||
WORKDIR /app
|
||||
COPY --from=build /build/app/ /app/
|
||||
CMD ["node", "--experimental-specifier-resolution=node", "dist"]
|
6
docker-compose.yml
Normal file
6
docker-compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
services:
|
||||
bot:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
Loading…
Reference in a new issue