chore: allow ca-certificates
This commit is contained in:
parent
7dec072679
commit
823f93f556
|
@ -1,25 +1,25 @@
|
||||||
FROM golang:1.19.0-bullseye AS builder
|
FROM golang:1.19.0-bullseye AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go build -o main .
|
RUN go build -o main .
|
||||||
|
|
||||||
FROM debian:bullseye AS runtime
|
FROM debian:bullseye AS runtime
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade --no-install-recommends -y \
|
RUN apt-get update && apt-get upgrade --no-install-recommends -y \
|
||||||
&& apt-get install -y --no-install-recommends curl \
|
&& apt-get install -y curl ca-certificates \
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=builder /app/main .
|
COPY --from=builder /app/main .
|
||||||
|
|
||||||
ENV PORT=5000
|
ENV PORT=5000
|
||||||
ENV HOSTNAME=0.0.0.0
|
ENV HOSTNAME=0.0.0.0
|
||||||
ENV ENVIRONMENT=production
|
ENV ENVIRONMENT=production
|
||||||
|
|
||||||
EXPOSE ${PORT}
|
EXPOSE ${PORT}
|
||||||
|
|
||||||
ENTRYPOINT [ "/app/main" ]
|
ENTRYPOINT [ "/app/main" ]
|
Loading…
Reference in New Issue