This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM node:8-alpine | ||
|
||
LABEL maintainer="Griefed <griefed@griefed.de>" | ||
LABEL description="Based on https://github.com/d-zone-org/d-zone/tree/v1/docker \ | ||
but pulls files from GitHub instead of copying from local filesystem. \ | ||
You must set your bot token as an environment variable and your bot must be \ | ||
a member of at least one server for this to work." | ||
|
||
|
||
RUN apk update && apk upgrade && apk add git && \ | ||
git clone -b v1/docker https://github.com/d-zone-org/d-zone.git /opt/d-zone && \ | ||
cd /opt/d-zone && \ | ||
npm install && \ | ||
npm run-script build && \ | ||
apk del git | ||
|
||
WORKDIR /opt/d-zone | ||
|
||
RUN node ./script/update-config.js | ||
|
||
CMD ["npm","start"] |