mirror of https://github.com/gogs/gogs.git
parent
db4bf20df3
commit
2b5639d503
13
Dockerfile
13
Dockerfile
|
@ -1,12 +1,15 @@
|
||||||
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 \
|
||||||
|
|
Loading…
Reference in New Issue