![Gunwant Jain](/assets/img/avatar_default.png)
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>
17 lines
232 B
Docker
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"]
|