Merge "Update Gitea images to bookworm"
This commit is contained in:
commit
c91d217681
@ -25,7 +25,7 @@
|
||||
|
||||
###################################
|
||||
#Build stage
|
||||
FROM docker.io/library/golang:1.20-bullseye AS build-env
|
||||
FROM docker.io/library/golang:1.20-bookworm AS build-env
|
||||
|
||||
LABEL maintainer="infra-root@openstack.org"
|
||||
|
||||
@ -35,7 +35,7 @@ ENV TAGS "bindata $TAGS"
|
||||
#Build deps
|
||||
RUN apt-get update && apt-get -y install build-essential git apt-transport-https curl gnupg2 \
|
||||
&& curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
|
||||
&& echo "deb https://deb.nodesource.com/node_20.x bullseye main" | tee /etc/apt/sources.list.d/nodesource.list \
|
||||
&& echo "deb https://deb.nodesource.com/node_20.x bookworm main" | tee /etc/apt/sources.list.d/nodesource.list \
|
||||
&& apt-get update \
|
||||
&& apt-get -q --option "Dpkg::Options::=--force-confold" --assume-yes install nodejs \
|
||||
&& mkdir -p ${GOPATH}/src/code.gitea.io/gitea
|
||||
@ -62,7 +62,7 @@ RUN chmod 755 gitea \
|
||||
###################################
|
||||
# Basic system setup common to all containers in our pod
|
||||
|
||||
FROM docker.io/library/debian:bullseye-slim as base
|
||||
FROM docker.io/library/debian:bookworm-slim as base
|
||||
|
||||
RUN apt-get update && apt-get -y install \
|
||||
bash \
|
||||
@ -100,6 +100,11 @@ COPY custom/ /custom/
|
||||
RUN --mount=type=bind,from=opendevorg/assets,target=/tmp/assets cp -r /tmp/assets/* /custom/public/img/
|
||||
|
||||
ENV GITEA_CUSTOM /custom
|
||||
# This is used the the openssh container image to set sshd_config AllowUsers
|
||||
# even though that container runs as root (due to low port selection).
|
||||
# The main gitea web container also uses this USER env var for basic user
|
||||
# setup in its entrypoint.
|
||||
ENV USER git
|
||||
|
||||
###################################
|
||||
# The gitea image
|
||||
@ -110,7 +115,6 @@ RUN apt-get update && apt-get -y install pandoc \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
EXPOSE 3000
|
||||
ENV USER git
|
||||
VOLUME ["/data"]
|
||||
ENTRYPOINT ["/usr/bin/entrypoint"]
|
||||
CMD ["/usr/local/bin/gitea", "web"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user