Skip to content

Commit 9431ff4

Browse files
committed
Update Docker stuff
1 parent 4d279b3 commit 9431ff4

File tree

3 files changed

+5
-37
lines changed

3 files changed

+5
-37
lines changed

Dockerfile

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
#
2-
# Run/build with alpine image that has only runtime support
3-
#
4-
# NOTE: If you need to install dependencies that require native compilation,
5-
# consider using the Dockerfile-native example in this repo
6-
#
71
FROM node:12-alpine as runtime
8-
92
WORKDIR /usr/src/app
103

114
COPY package.json .
125
COPY package-lock.json .
13-
COPY src ./src
146
RUN npm ci --only=prod
157

8+
COPY src ./src
9+
1610
CMD [ "npm", "start" ]
1711

Dockerfile-native

-20
This file was deleted.

docker-compose-example.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
version: '3.8'
22

33
services:
4-
bot-1:
5-
image: myname/my-cool-bot:latest
4+
fpscord:
5+
image: rayzr522/fpscord:latest
66
environment:
77
BOT_TOKEN: "some_cool_token"
8-
# Have to use $$ here because $ is a special character, this is the same as a "$" prefix
9-
BOT_PREFIX: "$$"
10-
bot-2:
11-
image: myname/my-cool-bot:latest
12-
environment:
13-
BOT_TOKEN: "some_other_cool_token"
14-
BOT_PREFIX: "!"
8+
BOT_PREFIX: "f!"

0 commit comments

Comments
 (0)