Simplify dockerfiles and mark files as executable

This commit is contained in:
Gusto Bacvinka
2023-02-25 14:48:17 +02:00
parent 1ad4c600dc
commit f700030058
7 changed files with 11 additions and 5 deletions

0
build.sh Normal file → Executable file
View File

View File

View 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"

0
run.sh Normal file → Executable file
View File

2
wls-module/.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
build.sh
README.md

View File

@@ -1,7 +1,5 @@
FROM python:3.11.0
LABEL Maintainer="Daimakaimura"
WORKDIR /wls
COPY wls.py .
COPY rtnorm.py .
COPY requirements.txt ./
COPY . .
RUN pip install -r requirements.txt

6
wsl-module/build.sh Executable file
View 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 ./