RoadSign/Dockerfile

13 lines
241 B
Docker
Raw Permalink Normal View History

2023-11-18 13:18:30 +00:00
# Building Backend
2024-02-13 12:48:40 +00:00
FROM rust:alpine as roadsign-server
2023-11-18 13:18:30 +00:00
RUN apk add libressl-dev build-base
2023-11-18 13:18:30 +00:00
WORKDIR /source
COPY . .
ENV RUSTFLAGS="-C target-feature=-crt-static"
2024-02-13 12:48:40 +00:00
RUN cargo build --release
2023-11-18 13:18:30 +00:00
EXPOSE 81
2024-02-14 07:06:51 +00:00
CMD ["/source/target/release/roadsign"]