change: to new build environment
This commit is contained in:
parent
50552d7245
commit
f6db4212fd
3 changed files with 4 additions and 35 deletions
|
@ -1,6 +1,6 @@
|
|||
.forgejo
|
||||
compose.yml
|
||||
*.dockerfile
|
||||
*compose.yml
|
||||
Dockerfile
|
||||
.git*
|
||||
Jenkinsfile
|
||||
LICENSE
|
||||
|
|
|
@ -5,13 +5,10 @@ ENV DEBUG_MODE=False
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN apk add --no-cache git python3
|
||||
RUN python3 -m venv /opt/.venv
|
||||
RUN /opt/.venv/bin/pip install --no-cache-dir -r requirements.txt
|
||||
RUN apk del git
|
||||
RUN apk add --no-cache python3 py3-flask py3-waitress
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
HEALTHCHECK --interval=5m CMD wget --delete-after http://localhost:8080
|
||||
|
||||
CMD [ "/opt/.venv/bin/waitress-serve", "--listen=0.0.0.0:8080", "app:app" ]
|
||||
CMD [ "waitress-serve", "--listen=0.0.0.0:8080", "app:app" ]
|
||||
|
|
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
|
@ -1,28 +0,0 @@
|
|||
pipeline {
|
||||
agent { dockerfile true }
|
||||
stages {
|
||||
stage('Pull Alpine Image') {
|
||||
steps {
|
||||
script {
|
||||
// Pull the Alpine Docker image
|
||||
|
||||
dockerImage = docker.image('alpine:latest')
|
||||
|
||||
dockerImage.pull()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
docker.withRegistry('https://git.adrianux.net/ahoemann/') {
|
||||
|
||||
/* Build the container image */
|
||||
def dockerImage = docker.build("adrianux:${env.BUILD_ID}")
|
||||
|
||||
/* Push the container to the custom Registry */
|
||||
dockerImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue