highscore-server/Dockerfile

16 lines
308 B
Text
Raw Normal View History

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