Bump Go to 1.22 with latest trac2gitea code
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
parent
44341353cd
commit
8ae8615572
|
@ -1,9 +1,9 @@
|
||||||
# Start from the official Go image based on Alpine
|
# Start from the official Go image based on Alpine
|
||||||
FROM golang:1.19.3-alpine
|
FROM golang:1.22.4-alpine
|
||||||
|
|
||||||
LABEL Description="Trac2Gitea migration tool"
|
LABEL Description="Trac2Gitea migration tool"
|
||||||
|
|
||||||
RUN apk --no-cache add gcc libc-dev make
|
RUN apk --no-cache add gcc git libc-dev make
|
||||||
|
|
||||||
# Parameters for default user:group
|
# Parameters for default user:group
|
||||||
ARG uid=1000
|
ARG uid=1000
|
||||||
|
@ -23,18 +23,12 @@ RUN DIRS="/src /app" && \
|
||||||
# Switch to non-root user
|
# Switch to non-root user
|
||||||
USER ${user}
|
USER ${user}
|
||||||
|
|
||||||
# Inject the source code
|
# Install mockgen
|
||||||
#COPY *.go go.* accessor/* importer log markdown /src/
|
#RUN go install go.uber.org/mock/mockgen@v0.4.0
|
||||||
|
#RUN ln -s /go /home/${user}/go
|
||||||
|
|
||||||
# Download deps, build the app and cleanup the source
|
# Install pinned dependencies
|
||||||
WORKDIR /src
|
#COPY go.mod go.sum /src
|
||||||
|
#WORKDIR /src
|
||||||
#RUN go mod download && \
|
#RUN go mod download && \
|
||||||
# go mod verify
|
# go mod verify
|
||||||
|
|
||||||
#RUN go build -o /app/trac2gitea -ldflags '-extldflags "-static"' -buildvcs=false -v
|
|
||||||
|
|
||||||
# Switch to app directory
|
|
||||||
#WORKDIR /app
|
|
||||||
|
|
||||||
# Run the app by default
|
|
||||||
#CMD ./trac2gitea
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit d004494696af004da69614335f09848abeb54244
|
Subproject commit f013209fe7461359865579a28a161bb74c3abf37
|
Loading…
Reference in New Issue