# -------------------------------------------------------------------- # # 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"]