forked from Senither/hypixel-discord-chat-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 738 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM node:14-alpine
# Environment Variables
# Minecraft Server
ENV SERVER_HOST=mc.hypixel.net
ENV SERVER_PORT=25565
# Minecraft Account
ENV MINECRAFT_USERNAME=yourUsername
ENV MINECRAFT_PASSWORD=yourPassword
ENV MINECRAFT_ACCOUNT_TYPE=mojang
# Discord Account
ENV DISCORD_TOKEN=yourDiscordToken
# Discord Settings
ENV DISCORD_CHANNEL=discordChannelId
ENV DISCORD_COMMAND_ROLE=discordCommandRoleId
ENV DISCORD_OWNER_ID=discordOwnerId
ENV DISCORD_PREFIX=!
# Docker set up instructions
# Setup the working directory
WORKDIR /srv
# Installs our dependencies
COPY package.json /srv/
COPY yarn.lock /srv/
RUN yarn install
# Copy over the source code
COPY src /srv/src/
COPY index.js /srv/
# Start the application
CMD [ "yarn", "start" ]