Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-D-Zone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Griefed
docker-D-Zone
Commits
8d832009
Unverified
Commit
8d832009
authored
4 years ago
by
Griefed
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Rebase to lsiobase/alpine:3.12
parent
6c704a56
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+33
-14
33 additions, 14 deletions
Dockerfile
with
33 additions
and
14 deletions
Dockerfile
+
33
−
14
View file @
8d832009
FROM
node:8-
alpine
FROM
lsiobase/
alpine
:3.12
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."
LABEL
maintainer="Griefed <griefed@griefed.de>"
# Test whether these are needed. If not, remove
ENV
HOME="/app"
ENV
NODE_ENV="production"
RUN
apk update
&&
apk upgrade
&&
apk add git
&&
apk add nano
&&
\
git clone
-b
heroku https://github.com/d-zone-org/d-zone.git /opt/d-zone
&&
\
cd
/opt/d-zone
&&
\
npm
install
--no-optional
&&
\
npm run-script build
&&
\
apk del git
# Build our D-Zone S6 image with lsiobase alpine. Much love to, Linuxserver.io!
RUN
\
echo
"**** install dependencies and build tools and stuff ****"
&&
\
apk add
--no-cache
\
git
\
nano
\
npm
\
nodejs
&&
\
mkdir
-p
\
/app/d-zone
&&
\
git clone
-b
\
heroku
\
https://github.com/d-zone-org/d-zone.git
\
/app/d-zone
&&
\
echo
"**** run npm install and build D-Zone ****"
&&
\
cd
/app/d-zone
&&
\
npm
install
--no-optional
&&
\
npm run-script build
&&
\
echo
"**** delete git as we no longer need it ****"
&&
\
apk del
--purge
\
git
&&
\
rm
-rf
\
/root/.cache
\
/tmp/
*
WORKDIR
/opt/d-zone
# Copy local files
COPY
root/ /
# Communicate port to be used
EXPOSE
3000
CMD
["npm","start"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment