iptfreedom/docker/server.Dockerfile

15 lines
375 B
Text
Raw Normal View History

2023-06-09 10:48:58 -04:00
FROM ghcr.io/paradigmmc/mcman:latest as builder
WORKDIR /server
COPY . .
RUN mcman build
FROM eclipse-temurin:17-alpine
RUN addgroup -S server && adduser -S server -G server
RUN apk add --no-cache su-exec
COPY --from=builder --chown=1000:1000 /server/server/ /server
VOLUME /server
WORKDIR /server
COPY ./docker/entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]