Cleanup after install

This commit is contained in:
Maksim Karasev 2021-08-30 11:09:33 +03:00
parent 9a7dd154a6
commit 1da111e919
1 changed files with 4 additions and 3 deletions

View File

@ -14,15 +14,16 @@ WORKDIR /app
COPY ./ /app
COPY --from=frontend-build /app/packages/web/build /app/packages/server/public
RUN apt update && \
apt install -y \
RUN apt-get update && \
apt-get install -y \
ffmpeg \
python3 \
build-essential \
&& yarn --version\
&& yarn workspaces focus server\
&& yarn workspace server build \
&& yarn cache clean --all
&& yarn cache clean --all \
&& rm -rf /var/lib/apt/lists/*
VOLUME ["/images", "/db"]
ENV IMAGE_DIR="/images"