dock some bitches

This commit is contained in:
Lea 2023-03-17 17:12:12 +01:00
parent f9a7991a8f
commit ee51bf161c
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
2 changed files with 18 additions and 0 deletions

12
Dockerfile Normal file
View 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
View file

@ -0,0 +1,6 @@
services:
bot:
build: .
restart: unless-stopped
env_file:
- .env