RoadSign/Dockerfile
2024-02-13 20:48:40 +08:00

17 lines
275 B
Docker

# Building Backend
FROM rust:alpine as roadsign-server
RUN apk add nodejs npm
WORKDIR /source
COPY . .
RUN cargo build --release
# Runtime
FROM alpine:latest
COPY --from=roadsign-server /source/target/release/roadsign /roadsign/server
EXPOSE 81
CMD ["/roadsign/server"]