This commit is contained in:
parent
7017588eef
commit
046b25cdf0
4 changed files with 33 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
FROM python:3
|
||||
RUN apt-get update && apt-get install -y python3-pip
|
||||
RUN pip3 install --upgrade pip
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
COPY /app/app.py /app
|
||||
RUN pip3 install -r requirements.txt
|
||||
COPY . .
|
||||
CMD ["python3", "app.py"]
|
||||
################
|
||||
11
Jenkinsfile
vendored
Normal file
11
Jenkinsfile
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Mock') {
|
||||
steps {
|
||||
echo ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
6
app/app.py
Normal file
6
app/app.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
def main():
|
||||
print('I am the main print. Hi, dude!')
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
6
requirements.txt
Normal file
6
requirements.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
copier
|
||||
invoke
|
||||
numpy
|
||||
pandas
|
||||
psycopg
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue