2023-04-07 10:48:02 +02:00
|
|
|
FROM git.snrd.eu/sunred/vlang:alpine AS build
|
2023-01-07 13:00:00 +01:00
|
|
|
|
|
|
|
WORKDIR /tmp/app
|
|
|
|
COPY . .
|
2023-01-10 11:00:00 +01:00
|
|
|
RUN v -prod -o highscore-server .
|
2023-01-07 13:00:00 +01:00
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
2023-01-10 19:00:00 +01:00
|
|
|
RUN apk --no-cache add sqlite-libs
|
2023-01-10 11:00:00 +01:00
|
|
|
|
2023-01-07 13:00:00 +01:00
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /tmp/app/highscore-server .
|
|
|
|
COPY --from=build /tmp/app/config.example.toml ./config.toml
|
|
|
|
|
|
|
|
ENTRYPOINT [ "./highscore-server" ]
|