1
0

server.Dockerfile 289 B

1234567891011121314151617181920
  1. ARG UBUNTU_VERSION=22.04
  2. FROM ubuntu:$UBUNTU_VERSION as build
  3. RUN apt-get update && \
  4. apt-get install -y build-essential git
  5. WORKDIR /app
  6. COPY . .
  7. RUN make
  8. FROM ubuntu:$UBUNTU_VERSION as runtime
  9. COPY --from=build /app/server /server
  10. ENV LC_ALL=C.utf8
  11. ENTRYPOINT [ "/server" ]