Created dockerfile, updated jenkinsfile
Some checks failed
gitea/video-server-backend/pipeline/head There was a failure building this commit

This commit is contained in:
Jose134 2024-08-10 01:53:37 +02:00
parent 6a3ffb0b39
commit 7bc56dc6c5
2 changed files with 16 additions and 2 deletions

14
Dockerfile Normal file
View 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
View File

@ -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 .'
}
}
}