-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Start with the Miniconda base image | ||
FROM continuumio/miniconda3:24.9.2-0 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /main | ||
|
||
# Copy the environment file and project code | ||
COPY atlasenv.yml . | ||
|
||
# Create a user with a specific UID and GID | ||
RUN groupadd -g 1000 atlasgroup && \ | ||
useradd -m -u 1000 -g atlasgroup -s /bin/bash atlasuser | ||
|
||
# Set the HOME environment variable | ||
ENV HOME=/home/atlasuser | ||
|
||
# Change ownership of the home directory | ||
RUN chown -R atlasuser:atlasgroup $HOME | ||
|
||
# Switch to the new user | ||
USER atlasuser | ||
|
||
# Create and activate the environment | ||
RUN conda env create -n atlas -f atlasenv.yml && \ | ||
conda clean -afy && \ | ||
echo "source activate atlas" > ~/.bashrc | ||
|
||
# Set the working directory | ||
WORKDIR /main | ||
|
||
|
||
# Set the default command | ||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker run -it --name atlas-debug -v $(pwd):/main atlas-debug |