mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
TARGETARCH is an automatic build-arg that docker injects - https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope - so this is safe to depend on.
28 lines
1001 B
Docker
28 lines
1001 B
Docker
FROM dokku/dokku:latest
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install --no-install-recommends -y build-essential file nano && \
|
|
apt-get install --no-install-recommends -y help2man shellcheck uuid-runtime wget xmlstarlet && \
|
|
apt-get clean autoclean && \
|
|
apt-get autoremove --yes && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ARG TARGETARCH
|
|
RUN wget https://dl.google.com/go/go1.17.9.linux-${TARGETARCH}.tar.gz && \
|
|
tar -xvf go1.17.9.linux-${TARGETARCH}.tar.gz && \
|
|
mv go /usr/local
|
|
|
|
RUN GOROOT=/usr/local/go /usr/local/go/bin/go install golang.org/x/tools/gopls@latest 2>&1
|
|
|
|
ADD https://raw.githubusercontent.com/dokku/dokku/master/tests/dhparam.pem /mnt/dokku/etc/nginx/dhparam.pem
|
|
|
|
COPY .devcontainer/bin/ /usr/local/bin/
|
|
COPY ["tests.mk", "Makefile"]
|
|
RUN make ci-dependencies
|
|
|
|
COPY . .
|
|
|
|
ENV DOKKU_HOSTNAME=dokku.me GOROOT=/usr/local/go PATH=/usr/local/go/bin:/root/go/bin:$PATH PLUGIN_MAKE_TARGET=build
|
|
|
|
LABEL org.label-schema.schema-version=1.0 org.label-schema.vendor=dokku com.dokku.devcontainer=true
|