latest
This commit is contained in:
31
Dockerfile
31
Dockerfile
@@ -5,6 +5,14 @@ ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
ARG UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu
|
||||
|
||||
ARG RUBY_VERSION="2.6.2"
|
||||
ARG NODE_VERSION="v13.10.1"
|
||||
# v2.4.0, current stable as of 2020-03-04:
|
||||
ARG DISCOURSE_VERSION="76b9be3f19f393a216973b791245228f2d3e92f8"
|
||||
|
||||
ARG UID=61000
|
||||
ARG GID=61000
|
||||
|
||||
RUN echo "deb $UBUNTU_MIRROR focal main universe restricted multiverse" > /etc/apt/sources.list.new && \
|
||||
echo "deb $UBUNTU_MIRROR focal-updates main universe restricted multiverse" >> /etc/apt/sources.list.new && \
|
||||
echo "deb $UBUNTU_MIRROR focal-security main universe restricted multiverse" >> /etc/apt/sources.list.new && \
|
||||
@@ -13,19 +21,21 @@ mv /etc/apt/sources.list.new /etc/apt/sources.list
|
||||
|
||||
|
||||
# we only install essential system packages here
|
||||
ARG SYSTEM_PACKAGES="build-essential ca-certificates git golang rsync runit software-properties-common"
|
||||
ARG SYSTEM_PACKAGES="locales build-essential ca-certificates git golang rsync runit software-properties-common"
|
||||
|
||||
RUN \
|
||||
apt update && \
|
||||
apt -y upgrade && \
|
||||
apt -y install $SYSTEM_PACKAGES && \
|
||||
go get -v -u github.com/peterbourgon/runsvinit && \
|
||||
go get -v -u git.eeqj.de/sneak/runsvinit && \
|
||||
cp /root/go/bin/runsvinit /usr/local/sbin/runsvinit && \
|
||||
rm -r /root/go
|
||||
rm -r /root/go && \
|
||||
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
|
||||
locale-gen
|
||||
|
||||
COPY ./root /tmp/rootoverlay
|
||||
RUN rsync -avP /tmp/rootoverlay/ / && \
|
||||
rm -rf /tmp/rootoverlay
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
||||
# prereqs for discourse
|
||||
RUN apt update && \
|
||||
@@ -68,7 +78,12 @@ RUN apt update && \
|
||||
vim \
|
||||
zlib1g-dev
|
||||
|
||||
COPY ./run.sh /tmp/run.sh
|
||||
RUN /bin/bash /tmp/run.sh && rm /tmp/run.sh
|
||||
COPY ./install.sh /tmp/install.sh
|
||||
RUN /bin/bash /tmp/install.sh && rm /tmp/install.sh
|
||||
|
||||
COPY ./root /tmp/rootoverlay
|
||||
RUN rsync -avP /tmp/rootoverlay/ / && \
|
||||
rm -rf /tmp/rootoverlay && \
|
||||
chmod +x /etc/service/*/run
|
||||
|
||||
CMD ["/usr/local/sbin/runsvinit"]
|
||||
|
||||
Reference in New Issue
Block a user