This commit is contained in:
parent
7ea73e75f3
commit
48b00ca2c8
@ -12,12 +12,4 @@ RUN apt-get install wget
|
||||
WORKDIR /app
|
||||
|
||||
# Create the environment:
|
||||
COPY environment.yml .
|
||||
RUN conda env create -f environment.yml
|
||||
|
||||
# Make RUN commands use the new environment:
|
||||
SHELL ["conda", "run", "-n", "myenv", "/bin/bash", "-c"]
|
||||
|
||||
# The code to run when container is started:
|
||||
COPY . .
|
||||
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "myenv", "python", "lab8/trainScript.py"]
|
@ -12,6 +12,10 @@ pipeline {
|
||||
)
|
||||
}
|
||||
stages {
|
||||
stage('conda') {
|
||||
sh 'conda env create -f environment.yml'
|
||||
sh 'conda activate myenv'
|
||||
}
|
||||
stage('Copy') {
|
||||
steps {
|
||||
copyArtifacts projectName: 's444417-create-dataset'
|
||||
|
Loading…
Reference in New Issue
Block a user