bin/Dockerfile
Gunwant Jain 04c992e8b3 client: write a simple client for the pastebin
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-07-13 21:23:34 +05:30

18 lines
260 B
Docker

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