Skip to content

Commit 31d5318

Browse files
updated docker-compose.yaml and Dockerfile
1 parent 1b09a19 commit 31d5318

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Dockerfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
FROM node:lts-alpine
1+
FROM node:lts-bullseye-slim
2+
23
ENV NODE_ENV=production
4+
35
WORKDIR /app
6+
47
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
8+
59
RUN npm install --production --silent && mv node_modules ../
10+
611
COPY . ./
12+
713
RUN chown -R node /app
14+
815
USER node
16+
917
CMD ["npm", "start"]

docker-compose.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.4'
2-
31
services:
42
bot:
53
container_name: spades

0 commit comments

Comments
 (0)