PabloVD commited on
Commit
2503ae0
·
1 Parent(s): 0163307

Fix pip path and remove arguments in command

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -25,18 +25,16 @@ ENV HOME=/home/user \
25
  # Install the project into `/app`
26
  WORKDIR $HOME/app
27
 
28
- # Then, add the rest of the project source code and install it
29
- # Installing separately from its dependencies allows optimal layer caching
30
  # Copy all the app code to the docker
31
  COPY --chown=user . $HOME/app
32
 
33
- # Install Astropilot
34
- RUN pip install cmbagent@https://github.com/CMBAgents/cmbagent.git@pablo/gui_keys
35
 
36
- # This informs Docker that the container will listen on port 5000 at runtime.
37
  EXPOSE 8501
38
 
39
  # Command to run the app
40
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
41
 
42
- CMD ["cmbagent", "run", "--server.port=8501", "--server.address=0.0.0.0"]
 
25
  # Install the project into `/app`
26
  WORKDIR $HOME/app
27
 
 
 
28
  # Copy all the app code to the docker
29
  COPY --chown=user . $HOME/app
30
 
31
+ # Install cmbagent
32
+ RUN pip install git+https://github.com/CMBAgents/cmbagent.git@pablo/gui_keys
33
 
34
+ # This informs Docker that the container will listen on port 8501 at runtime.
35
  EXPOSE 8501
36
 
37
  # Command to run the app
38
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
39
 
40
+ CMD ["cmbagent", "run"]