update dockerfile

This commit is contained in:
2025-03-09 20:41:35 +00:00
parent 21a123e7cf
commit 78cd5cc2bb
2 changed files with 3 additions and 4 deletions

View File

@@ -2,14 +2,13 @@
FROM golang:1.24.1-alpine3.21 AS build FROM golang:1.24.1-alpine3.21 AS build
RUN apk add clang lld musl-dev compiler-rt compiler-rt-static RUN apk add clang lld musl-dev compiler-rt
RUN mkdir -pv /app RUN mkdir -pv /app
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
ENV CC=clang ENV CC=clang
ENV GOPATH=/app
ENV CGO_ENABLED=1 ENV CGO_ENABLED=1
ENV GOOS=linux ENV GOOS=linux
@@ -24,4 +23,4 @@ COPY --from=build /app/server /app/server
COPY --from=build /app/wwwroot /app/wwwroot COPY --from=build /app/wwwroot /app/wwwroot
COPY --from=build /app/passwords.db /app/passwords.db COPY --from=build /app/passwords.db /app/passwords.db
CMD ["/app/server"] CMD ["/app/server"]

2
go.mod
View File

@@ -1,6 +1,6 @@
module maxwarden module maxwarden
go 1.23.0 go 1.24.1
require golang.org/x/crypto v0.31.0 require golang.org/x/crypto v0.31.0