tkcashgame_v4/app/eonline/manifests/Dockerfile

23 lines
488 B
Docker

FROM golang:1.17 AS builder
COPY . /src
WORKDIR /src/app/eonline
RUN GOPROXY=https://goproxy.cn,direct make build
FROM debian:stable-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
netbase \
&& rm -rf /var/lib/apt/lists/ \
&& apt-get autoremove -y && apt-get autoclean -y
COPY --from=builder /src/app/eonline/bin /app
WORKDIR /app
EXPOSE 8001
EXPOSE 9001
VOLUME /data/conf
CMD ["./server", "-conf", "/data/conf"]