fix(docker): fixed go version in Dockerfile
Build and Push Docker image / build-and-push (push) Successful in 3m9s
Details
Build and Push Docker image / build-and-push (push) Successful in 3m9s
Details
This commit is contained in:
parent
f997e2607c
commit
94f1d4c586
|
@ -1,10 +1,10 @@
|
||||||
# Start from the official Go image to create a build artifact.
|
# Start from the official Go image to create a build artifact.
|
||||||
# This is the first stage of a multi-stage build.
|
# This is the first stage of a multi-stage build.
|
||||||
FROM golang:1.21 as builder
|
FROM golang:1.22 as builder
|
||||||
|
|
||||||
# Set labels
|
# Set labels
|
||||||
LABEL maintainer="Valentin Kolb"
|
LABEL maintainer="Valentin Kolb"
|
||||||
LABEL version="1.0"
|
LABEL version="2.0"
|
||||||
|
|
||||||
# Set the working directory inside the container.
|
# Set the working directory inside the container.
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
@ -34,6 +34,9 @@ WORKDIR /app
|
||||||
# Copy the statically-linked binary from the builder stage.
|
# Copy the statically-linked binary from the builder stage.
|
||||||
COPY --from=builder /build/pocketbase .
|
COPY --from=builder /build/pocketbase .
|
||||||
|
|
||||||
|
# Copy html files
|
||||||
|
COPY ./html ./html
|
||||||
|
|
||||||
# Expose port 8090 to the outside world.
|
# Expose port 8090 to the outside world.
|
||||||
EXPOSE 8090
|
EXPOSE 8090
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue