Files
chronical/Dockerfile
William Gill caab555275
Some checks failed
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Successful in 2m3s
Create Release & Upload Assets / Build Container Image (push) Failing after 1m6s
Puuuussshhh
2025-10-11 03:41:01 +00:00

36 lines
1.0 KiB
Docker

# -------------------------------------------------------------------- #
# GoServ Dockerfile #
# Environment: Alpine #
# Applications: Go #
# -------------------------------------------------------------------- #
# Build Environment
# Start from the latest golang base image
FROM golang:alpine AS build
ARG TOKEN
ARG VERSION
# Set the Current Working Directory inside the container
WORKDIR /build
RUN apk add curl tar
RUN curl -vLJ -H "Authorization: token ${TOKEN}" -o chronical_linux_amd64.tar https://git.anomalous.dev/57_Wolve/chronical/releases/download/${VERSION}/discord-sentinel_linux_amd64.tar
RUN tar xvf chronical_linux_amd64.tar -C /build
# Release Environment
FROM golang:alpine AS runtime
WORKDIR /app
COPY --from=build /build/chronical /app/
# Expose port 8080 to the outside world
EXPOSE 8080
# Command to run the executable
CMD ["./chronical"]