15 lines
321 B
Docker
15 lines
321 B
Docker
FROM git.snrd.eu/sunred/vlang:alpine AS build
|
|
|
|
WORKDIR /tmp/app
|
|
COPY . .
|
|
RUN v -prod -o highscore-server .
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add sqlite-libs
|
|
|
|
WORKDIR /app
|
|
COPY --from=build /tmp/app/highscore-server .
|
|
COPY --from=build /tmp/app/config.example.toml ./config.toml
|
|
|
|
ENTRYPOINT [ "./highscore-server" ]
|