17 lines
275 B
Docker
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"] |