Files
metatube-server/Dockerfile
T
xjasonlyu d0da0c0ad2 Revert
This reverts commit 9be9a19d01.
2022-06-20 17:30:51 +08:00

26 lines
539 B
Docker

FROM golang:alpine AS builder
WORKDIR /src
COPY . /src
RUN apk add --update --no-cache --no-progress make git \
&& make server
FROM alpine:latest
LABEL org.opencontainers.image.source="https://github.com/javtube/javtube-sdk-go"
COPY --from=builder /src/build/javtube-server .
RUN apk add --update --no-cache --no-progress ca-certificates tzdata
ENV GIN_MODE=release
ENV PORT=8080
ENV TOKEN=""
ENV DSN=""
ENV DB_MAX_IDLE_CONNS=0
ENV DB_MAX_OPEN_CONNS=0
ENV DB_PREPARED_STMT=0
ENV DB_AUTO_MIGRATE=0
ENTRYPOINT ["/javtube-server"]