diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d0f4688 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +# syntax=docker/dockerfile:1 +FROM node:16.9.0-alpine +RUN apk add --no-cache imagemagick \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index b4b1c8d..3e34f8c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.7" services: bot: - image: node:16.9.0-alpine + build: . command: sh -c "npm config set cache /app/.npm_cache --global && npm install && node ." restart: unless-stopped environment: