Skip to content

Commit

Permalink
Split build into more layers
Browse files Browse the repository at this point in the history
  • Loading branch information
aa-ko committed Jan 10, 2023
1 parent cccf4c2 commit e118962
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM ubuntu:22.04

RUN apt-get update\
&& apt-get -y install --no-install-recommends wget rsync git build-essential python3 python3-pip python3-dev python3-pil python3-numpy\
&& rm -rf /var/lib/apt/lists/*
RUN apt update
RUN apt install -y --no-install-recommends wget rsync git build-essential python3 python3-pip python3-dev python3-pil python3-numpy
RUN rm -rf /var/lib/apt/lists/*

COPY Minecraft-Overviewer /overviewer
WORKDIR /overviewer
Expand All @@ -19,7 +19,6 @@ VOLUME /render

COPY autorender.py /overviewer
COPY autorender-requirements.txt /overviewer
WORKDIR /overviewer
RUN pip3 install -r autorender-requirements.txt

RUN mkdir -p ~/.minecraft/versions/${MC_VERSION}/
Expand Down

0 comments on commit e118962

Please sign in to comment.