Skip to content

Commit

Permalink
Updates on docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowcap committed Jun 6, 2024
1 parent d71794c commit a952edc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM mambaorg/micromamba:1.5.6
FROM mambaorg/micromamba:1.5.8

WORKDIR /model

COPY --chown=$MAMBA_USER:$MAMBA_USER . .

RUN micromamba create -y -n claymodel --file environment.yml && \
micromamba clean --all --yes
RUN micromamba create --name claymodel --yes --file conda-lock.yml \
&& micromamba clean --all --yes

ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"]
CMD ["jupyter-lab", "--ip", "0.0.0.0", "--port", "8888", "--allow-root"]
8 changes: 1 addition & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ version: '3.8'

services:
claymodel:
build:
context: .
dockerfile: Dockerfile
args:
- platform=linux/amd64 # Specify the target platform for build
image: claymodel
platform: linux/amd64 # Specify the target platform for run
ports:
- "8888:8888" # Expose port 8888 on the host and bind it to port 8888 in the container
volumes:
- .:/model # Mount the current directory to /app in the container
environment:
- ENV_NAME=claymodel # Ensure the claymodel conda environment is activated

0 comments on commit a952edc

Please sign in to comment.