AnthoLume/Dockerfile

25 lines
477 B
Docker
Raw Normal View History

# Certificate Store
2023-10-24 11:39:37 +00:00
FROM alpine AS certs
RUN apk update && apk add ca-certificates
# Build Image
2023-10-24 11:39:37 +00:00
FROM golang:1.20 AS build
2023-10-24 11:39:37 +00:00
# Copy Source
WORKDIR /src
COPY . .
# Create Package Directory
2023-11-04 23:40:32 +00:00
RUN mkdir -p /opt/antholume
2023-10-24 11:39:37 +00:00
# Compile
2023-11-29 03:01:49 +00:00
RUN go build -o /opt/antholume/server
2023-09-18 23:57:18 +00:00
# Create Image
FROM busybox:1.36
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
2023-11-04 23:40:32 +00:00
COPY --from=build /opt/antholume /opt/antholume
WORKDIR /opt/antholume
2023-09-18 23:57:18 +00:00
EXPOSE 8585
2023-11-04 23:40:32 +00:00
ENTRYPOINT ["/opt/antholume/server", "serve"]