13 lines
257 B
Docker
13 lines
257 B
Docker
|
FROM alpine
|
||
|
|
||
|
ENV RUN_MODE=prod
|
||
|
|
||
|
WORKDIR /rtss_sim
|
||
|
COPY ./target/x86_64-unknown-linux-musl/release/rtss_simulation ./rtss_sim
|
||
|
COPY ./conf/* ./conf/
|
||
|
COPY ./migrations/* ./migrations/
|
||
|
|
||
|
EXPOSE 8765
|
||
|
|
||
|
CMD ["sh", "-c", "./rtss_sim db migrate && ./rtss_sim serve"]
|