Created dockerfile, updated jenkinsfile
Some checks failed
gitea/video-server-backend/pipeline/head There was a failure building this commit
Some checks failed
gitea/video-server-backend/pipeline/head There was a failure building this commit
This commit is contained in:
parent
6a3ffb0b39
commit
7bc56dc6c5
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
# Use the official Go image as the base image
|
||||
FROM golang:1.22.6
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the source code into the container
|
||||
COPY . .
|
||||
|
||||
# Build the Go application
|
||||
RUN go build -o app ./cmd/video_server_backend/main.go
|
||||
|
||||
# Set the entry point for the container
|
||||
ENTRYPOINT ["./app"]
|
||||
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -2,9 +2,9 @@ pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Do nothing') {
|
||||
stage('Docker build') {
|
||||
steps {
|
||||
sh '/bin/true'
|
||||
sh 'docker build -t darkbird/video-server-backend:latest .'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user