update dockerfile

This commit is contained in:
xjasonlyu committed 2022-05-21 15:21:57 +08:00
1 parent 26a5c8acbc
commit a7be628a7d
1 file changed
+3 -3
+3 -3
View File
@@ -9,13 +9,13 @@ RUN go build -v -ldflags '-w -s -buildid=' -trimpath \
FROM alpine:latest FROM alpine:latest
LABEL org.opencontainers.image.source="https://github.com/javtube/javtube-sdk-go" LABEL org.opencontainers.image.source="https://github.com/javtube/javtube-sdk-go"
COPY --from=builder /src/build/javtube-server /usr/bin/javtube-server RUN apk --no-cache --no-progress add ca-certificates tzdata
RUN apk add --update --no-cache tzdata COPY --from=builder /src/javtube-server .
ENV GIN_MODE=release ENV GIN_MODE=release
ENV PORT=8080 ENV PORT=8080
ENV DSN="" ENV DSN=""
ENV AUTOMIGRATE=true ENV AUTOMIGRATE=true
CMD ["javtube-server"] CMD ["/javtube-server"]