highscore-server/Dockerfile
Manuel dc8c7bd2b6
Support for multiple games and keys per game, refactor, tweaks
* Update editorconfig for Dockerfile formatting
* Update Dockerfile to strip debug symbols
* Support pushing multiple highscores and use of Options to support traditional API mode
* Support sending and retrieving different highscore lists for a game based on a key
* Support retrieving partial highscore lists for client side pagination
* Use of vweb_global attribute for better performance (No mutex/shared variable) and immutability
* Support for a verification key that is used for checksumming score data with a private key to raise the difficulty for potential cheaters
* Add Logger for nicer console output and severity distinction
* Use of transactions in database for higher reliability
* Additional error checking for improved error recovery and reliability
2023-10-02 14:05:46 +02:00

15 lines
308 B
Docker

FROM thevlang/vlang:alpine AS build
WORKDIR /tmp/app
COPY . .
RUN v -prod -ldflags "-s -w" -o highscore-server .
FROM alpine:latest
RUN apk --no-cache add sqlite-libs
WORKDIR /app
COPY --from=build /tmp/app/highscore-server .
COPY ./config.example.toml ./config.toml
ENTRYPOINT [ "./highscore-server" ]