2023-01-07 13:00:00 +01:00
|
|
|
FROM thevlang/vlang:alpine AS build
|
|
|
|
|
|
|
|
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 11:00:00 +01:00
|
|
|
RUN apk --no-cache add sqlite-dev
|
|
|
|
|
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" ]
|