mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 07:14:24 +08:00
Cleanup Dockerfile
This commit is contained in:
parent
dae2d9d761
commit
4dd01afffb
11
Dockerfile
11
Dockerfile
@ -5,20 +5,23 @@ ENV CURA_BRANCH=master
|
||||
ENV URANIUM_BRANCH=$CURA_BRANCH
|
||||
ENV CURA_BENV_GIT_DIR=/srv/cura
|
||||
|
||||
# Setup the repositories
|
||||
RUN mkdir $CURA_BENV_GIT_DIR
|
||||
|
||||
# Setup Uranium
|
||||
WORKDIR $CURA_BENV_GIT_DIR
|
||||
RUN git clone https://github.com/Ultimaker/Uranium
|
||||
WORKDIR $CURA_BENV_GIT_DIR/Uranium
|
||||
RUN git fetch origin
|
||||
RUN git checkout $URANIUM_BRANCH
|
||||
RUN export PYTHOHPATH="${PYTHONPATH}:$CURA_BENV_GIT_DIR/Uranium"
|
||||
|
||||
# Setup Cura
|
||||
WORKDIR $CURA_BENV_GIT_DIR
|
||||
RUN git clone https://github.com/Ultimaker/cura
|
||||
WORKDIR $CURA_BENV_GIT_DIR/Cura
|
||||
RUN git fetch origin
|
||||
RUN git checkout origin $CURA_BRANCH
|
||||
|
||||
# Ensure Uranium is in the python path
|
||||
RUN export PYTHOHPATH="${PYTHONPATH}:$CURA_BENV_GIT_DIR/Uranium"
|
||||
|
||||
# Run Cura
|
||||
WORKDIR $CURA_BENV_GIT_DIR/Cura
|
||||
CMD ["python3", "cura_app.py"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user