mirror of https://github.com/gogs/gogs.git
parent
db4bf20df3
commit
2b5639d503
35
Dockerfile
35
Dockerfile
|
@ -1,27 +1,30 @@
|
||||||
FROM golang:alpine AS binarybuilder
|
FROM golang:alpine3.10 AS binarybuilder
|
||||||
# Install build deps
|
RUN apk --no-cache --no-progress add --virtual \
|
||||||
RUN apk --no-cache --no-progress add --virtual build-deps build-base git linux-pam-dev
|
build-deps \
|
||||||
|
build-base \
|
||||||
|
git \
|
||||||
|
linux-pam-dev
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/gogs/gogs
|
WORKDIR /go/src/github.com/gogs/gogs
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN make build TAGS="sqlite cert pam"
|
RUN make build TAGS="sqlite cert pam"
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:3.10
|
||||||
# Install system utils & Gogs runtime dependencies
|
|
||||||
ADD https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 /usr/sbin/gosu
|
ADD https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 /usr/sbin/gosu
|
||||||
RUN chmod +x /usr/sbin/gosu \
|
RUN chmod +x /usr/sbin/gosu \
|
||||||
&& echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
|
&& echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
|
||||||
&& apk --no-cache --no-progress add \
|
&& apk --no-cache --no-progress add \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
linux-pam \
|
linux-pam \
|
||||||
openssh \
|
openssh \
|
||||||
s6 \
|
s6 \
|
||||||
shadow \
|
shadow \
|
||||||
socat \
|
socat \
|
||||||
tzdata \
|
tzdata \
|
||||||
rsync
|
rsync
|
||||||
|
|
||||||
ENV GOGS_CUSTOM /data/gogs
|
ENV GOGS_CUSTOM /data/gogs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue