bin/Dockerfile
Gunwant Jain cb8e210acb dockerfile: shaving off old bits; use rust stable now
Building multi-layered containers gave weird 500 errors. I think they
were permission based but don't have the time to look into it.

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-07-13 04:28:48 +05:30

17 lines
232 B
Docker

FROM rust:1 as builder
WORKDIR /app
COPY . .
RUN cargo install --path .
RUN cargo clean
RUN mkdir -p upload
COPY ./templates templates
COPY ./static static
ENV ROCKET_ADDRESS=0.0.0.0
ENV ROCKET_PORT=6162
EXPOSE 6162
CMD ["bin"]