mirror of
https://github.com/TeamPiped/RYD-Proxy.git
synced 2024-12-12 21:30:40 +05:30
ci: switch to alpine base image (see #15)
This commit is contained in:
parent
ee03c20c98
commit
4d364ec4fc
14
Dockerfile
14
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM golang:latest AS build
|
||||
FROM golang:alpine AS build
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
@ -7,15 +7,13 @@ COPY . .
|
||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||
go build -ldflags "-s -w" main.go
|
||||
|
||||
FROM debian:stable-slim
|
||||
FROM alpine
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN apk --no-cache add --no-check-certificate ca-certificates \
|
||||
&& update-ca-certificates
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY --from=build /app/main /app/ryd-proxy
|
||||
COPY --from=build /app/main /ryd-proxy
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ./ryd-proxy
|
||||
CMD [ "/ryd-proxy" ]
|
||||
|
Loading…
Reference in New Issue
Block a user