Some checks failed
gitea/video-server-backend/pipeline/head There was a failure building this commit
14 lines
324 B
Docker
14 lines
324 B
Docker
# 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"] |