ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=24.04 |
ADD file:bcebbf0fddcba5b864d5d267b68dd23bcfb01275e6ec7bcab69bf8b56af14804 in / |
CMD ["/bin/bash"] |
LABEL authors="joel" |
WORKDIR /srv/ |
COPY dir:721e1e84f846b9349b8ecfc3f1571bfa15cc21cfbb25ab379ff64d90a66217df in /srv/static |
COPY file:3ba988dcd6c9a9effd7e298d555b07eecfe83893354c27242040b1e3bcd4e608 in server |
/bin/sh -c cp /srv/static/*.csv dictionary.csv |
/bin/sh -c echo '{"dictionary_path": "dictionary.csv", "static_path": "static"}' > config.json |
/bin/sh -c useradd -d /srv wordgrid && chown -R wordgrid:wordgrid /srv |
USER wordgrid |
ENV ROCKET_ADDRESS=0.0.0.0 |
ENV ROCKET_PORT=8000 |
ENTRYPOINT ["./server"] |
EXPOSE 8000 |