Skip to content

Commit

Permalink
Merge pull request #766 from moeflow-com/fix-dockerbuild
Browse files Browse the repository at this point in the history
Fix Dockerfile
  • Loading branch information
zyddnys authored Dec 6, 2024
2 parents 2c455dc + 7126b3e commit 0dede5d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ WORKDIR /app

COPY requirements.txt /app/requirements.txt

RUN pip install -r /app/requirements.txt
RUN export TZ=Etc/UTC ; \
apt update --yes \
&& apt install g++ ffmpeg libsm6 libxext6 --yes \
&& pip install -r /app/requirements.txt \
&& apt remove g++ --yes \
&& apt autoremove --yes \
&& rm -rf /var/cache/apt

# Copy app
COPY . /app

# Prepare models
Expand All @@ -19,7 +24,7 @@ RUN python -u docker_prepare.py --continue-on-error
RUN rm -rf /tmp

# Add /app to Python module path
ENV PYTHONPATH="${PYTHONPATH}:/app"
ENV PYTHONPATH="/app"

WORKDIR /app

Expand Down

0 comments on commit 0dede5d

Please sign in to comment.