Use LUnpack instead of lcdr utils for unpacking the client

This commit is contained in:
Nils Bergmann
2022-01-05 17:21:11 +01:00
parent 0f3fafde4b
commit f914799b62
4 changed files with 27 additions and 5 deletions

View File

@@ -1,12 +1,21 @@
FROM python:3.10.0-slim-buster as prep
FROM rust:alpine3.14 as LUnpack
RUN apt update && apt install unzip sqlite3
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
WORKDIR /setup
# copy needed files from repo
COPY resources/ resources/
COPY migrations/cdserver/ migrations/cdserver
COPY --from=LUnpack /build_LUnpack/target/release/lunpack /usr/local/bin/lunpack
ADD thirdparty/docker-utils/utils/*.py utils/
COPY docker/setup.sh /setup.sh