2022-01-05 16:21:11 +00:00
|
|
|
FROM rust:alpine3.14 as LUnpack
|
2021-12-08 07:50:15 +00:00
|
|
|
|
2022-01-05 16:21:11 +00:00
|
|
|
WORKDIR /build_LUnpack
|
|
|
|
|
|
|
|
COPY ./thirdparty/LUnpack .
|
|
|
|
|
|
|
|
RUN apk add musl-dev --no-cache && cargo build --release
|
|
|
|
|
|
|
|
FROM python:3.10-alpine3.14 as prep
|
|
|
|
|
|
|
|
RUN apk add sqlite bash --no-cache
|
2021-12-08 07:50:15 +00:00
|
|
|
|
|
|
|
WORKDIR /setup
|
|
|
|
|
|
|
|
# copy needed files from repo
|
|
|
|
COPY resources/ resources/
|
|
|
|
COPY migrations/cdserver/ migrations/cdserver
|
2022-01-05 16:21:11 +00:00
|
|
|
COPY --from=LUnpack /build_LUnpack/target/release/lunpack /usr/local/bin/lunpack
|
2021-12-09 21:39:54 +00:00
|
|
|
ADD thirdparty/docker-utils/utils/*.py utils/
|
2021-12-08 07:50:15 +00:00
|
|
|
|
|
|
|
COPY docker/setup.sh /setup.sh
|
|
|
|
|
|
|
|
CMD [ "/setup.sh" ]
|