This commit is contained in:
parent
1277612876
commit
df1d5a280e
24
Dockerfile
24
Dockerfile
@ -4,7 +4,7 @@ FROM docker.io/library/golang:1.23-alpine3.20 AS build-env
|
||||
ARG GOPROXY
|
||||
ENV GOPROXY=${GOPROXY:-direct}
|
||||
|
||||
# ARG GITEA_VERSION
|
||||
ARG GITEA_VERSION
|
||||
ARG TAGS="sqlite sqlite_unlock_notify"
|
||||
ENV TAGS="bindata timetzdata $TAGS"
|
||||
ARG CGO_EXTRA_CFLAGS
|
||||
@ -23,9 +23,9 @@ RUN npm --version
|
||||
COPY . ${GOPATH}/src/code.gitea.io/gitea
|
||||
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
|
||||
|
||||
# # Checkout version if set
|
||||
# RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
# && make clean-all build
|
||||
# Checkout version if set
|
||||
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
&& make clean-all build
|
||||
|
||||
# Begin env-to-ini build
|
||||
RUN go build contrib/environment-to-ini/environment-to-ini.go
|
||||
@ -34,14 +34,14 @@ RUN go build contrib/environment-to-ini/environment-to-ini.go
|
||||
COPY docker/root /tmp/local
|
||||
|
||||
# Set permissions
|
||||
# RUN chmod 755 /tmp/local/usr/bin/entrypoint \
|
||||
# /tmp/local/usr/local/bin/gitea \
|
||||
# /tmp/local/etc/s6/gitea/* \
|
||||
# /tmp/local/etc/s6/openssh/* \
|
||||
# /tmp/local/etc/s6/.s6-svscan/* \
|
||||
# /go/src/code.gitea.io/gitea/gitea \
|
||||
# /go/src/code.gitea.io/gitea/environment-to-ini
|
||||
# RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete
|
||||
RUN chmod 755 /tmp/local/usr/bin/entrypoint \
|
||||
/tmp/local/usr/local/bin/gitea \
|
||||
/tmp/local/etc/s6/gitea/* \
|
||||
/tmp/local/etc/s6/openssh/* \
|
||||
/tmp/local/etc/s6/.s6-svscan/* \
|
||||
/go/src/code.gitea.io/gitea/gitea \
|
||||
/go/src/code.gitea.io/gitea/environment-to-ini
|
||||
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete
|
||||
|
||||
FROM docker.io/library/alpine:3.20
|
||||
LABEL maintainer="maintainers@gitea.io"
|
||||
|
||||
@ -4,7 +4,7 @@ FROM docker.io/library/golang:1.23-alpine3.20 AS build-env
|
||||
ARG GOPROXY
|
||||
ENV GOPROXY=${GOPROXY:-direct}
|
||||
|
||||
# ARG GITEA_VERSION
|
||||
ARG GITEA_VERSION
|
||||
ARG TAGS="sqlite sqlite_unlock_notify"
|
||||
ENV TAGS="bindata timetzdata $TAGS"
|
||||
ARG CGO_EXTRA_CFLAGS
|
||||
@ -21,9 +21,9 @@ RUN apk --no-cache add \
|
||||
COPY . ${GOPATH}/src/code.gitea.io/gitea
|
||||
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
|
||||
|
||||
# # Checkout version if set
|
||||
# RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
# && make clean-all build
|
||||
# Checkout version if set
|
||||
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
&& make clean-all build
|
||||
|
||||
# Begin env-to-ini build
|
||||
RUN go build contrib/environment-to-ini/environment-to-ini.go
|
||||
|
||||
Loading…
Reference in New Issue
Block a user