Skip to content
Snippets Groups Projects
Unverified Commit 8d832009 authored by Griefed's avatar Griefed Committed by GitHub
Browse files

Rebase to lsiobase/alpine:3.12

parent 6c704a56
No related branches found
No related tags found
No related merge requests found
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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment