mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Add Dockerfile
This commit is contained in:
parent
c47045a42e
commit
dae2d9d761
1 changed files with 24 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM ultimaker/cura-build-environment:3.2
|
||||
|
||||
# Environment vars for easy configuration
|
||||
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
|
||||
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 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
|
||||
CMD ["python3", "cura_app.py"]
|
Loading…
Add table
Add a link
Reference in a new issue