RYD-Proxy/Dockerfile
2022-06-17 20:54:45 +01:00

21 lines
384 B
Docker

FROM golang:latest AS build
WORKDIR /app/
COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build \
go build -ldflags "-s -w" main.go
FROM debian:stable-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app/
COPY --from=build /app/main /app/ryd-proxy
EXPOSE 3000
CMD ./ryd-proxy