mirror of
https://github.com/vacp2p/wakurtosis.git
synced 2026-01-08 22:38:04 -05:00
Simplify dockerfiles and mark files as executable
This commit is contained in:
committed by
Alberto Soutullo Rendo
parent
34d903e796
commit
2df81532ec
0
gennet-module/.dockerignore
Normal file
0
gennet-module/.dockerignore
Normal file
@@ -21,7 +21,7 @@ COPY --from=build-image /opt/venv /opt/venv
|
||||
|
||||
# Copy the gennet files to the production image
|
||||
WORKDIR /gennet
|
||||
COPY Dockerfile batch_gen.sh gennet.py requirements.txt Readme.md ./
|
||||
COPY . .
|
||||
|
||||
# Deploy the virtualenv in production image
|
||||
ENV PATH="/opt/venv/bin:$PATH"
|
||||
|
||||
2
wls-module/.dockerignore
Normal file
2
wls-module/.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
build.sh
|
||||
README.md
|
||||
@@ -1,7 +1,5 @@
|
||||
FROM python:3.11.0
|
||||
LABEL Maintainer="Daimakaimura"
|
||||
WORKDIR /wls
|
||||
COPY wls.py .
|
||||
COPY rtnorm.py .
|
||||
COPY requirements.txt ./
|
||||
RUN pip install -r requirements.txt
|
||||
COPY . .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
6
wsl-module/build.sh
Executable file
6
wsl-module/build.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# pip freeze > requirements.txt
|
||||
image_id=$(docker images -q wsl:0.0.1)
|
||||
echo $image_id
|
||||
docker image rm -f $image_id
|
||||
docker image build --progress=plain -t wsl:0.0.1 ./
|
||||
Reference in New Issue
Block a user