Containerfile 301 B

123456789101112131415
  1. FROM arm64v8/busybox:musl
  2. ENV UIDC_DB /data/uidc.db
  3. EXPOSE 8080
  4. VOLUME /data
  5. RUN mkdir /uidc
  6. COPY target/aarch64-unknown-linux-musl/release/uidc /uidc/
  7. COPY static/ /uidc/static/
  8. COPY tmpl/ /uidc/tmpl/
  9. WORKDIR /uidc/
  10. CMD ["server", "--bind", "0.0.0.0", "--port", "8080"]
  11. ENTRYPOINT ["/uidc/uidc"]