Changed: DB Params
This commit is contained in:
16
templ/examples/counter-basic/Dockerfile
Normal file
16
templ/examples/counter-basic/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# Build.
|
||||
FROM golang:1.20 AS build-stage
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . /app
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /entrypoint
|
||||
|
||||
# Deploy.
|
||||
FROM gcr.io/distroless/static-debian11 AS release-stage
|
||||
WORKDIR /
|
||||
COPY --chown=nonroot --from=build-stage /entrypoint /entrypoint
|
||||
COPY --chown=nonroot --from=build-stage /app/assets /assets
|
||||
EXPOSE 8080
|
||||
USER nonroot:nonroot
|
||||
ENTRYPOINT ["/entrypoint"]
|
Reference in New Issue
Block a user