mirror of
https://github.com/TeamPiped/RYD-Proxy.git
synced 2024-12-12 21:30:40 +05:30
20 lines
329 B
Docker
20 lines
329 B
Docker
FROM golang:alpine AS build
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY . .
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
|
go build -ldflags "-s -w" main.go
|
|
|
|
FROM alpine
|
|
|
|
RUN apk --no-cache add --no-check-certificate ca-certificates \
|
|
&& update-ca-certificates
|
|
|
|
|
|
COPY --from=build /app/main /ryd-proxy
|
|
|
|
EXPOSE 3000
|
|
CMD [ "/ryd-proxy" ]
|