fix: jenkins, pt 4
This commit is contained in:
parent
e2e26a8c25
commit
3b110fc3a4
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
# Start with an Alpine base image
|
||||
FROM alpine:latest
|
||||
|
||||
# Create a directory for our application
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the binary, public directory, and .env file
|
||||
COPY main /app/main
|
||||
COPY public /app/public
|
||||
COPY .env /app/.env
|
||||
|
||||
# Ensure the main binary is executable
|
||||
RUN chmod +x /app/main
|
||||
|
||||
# Set the command to run the main binary
|
||||
CMD ["/app/main"]
|
||||
|
@ -1,8 +0,0 @@
|
||||
FROM alpine:3
|
||||
|
||||
COPY ../main .
|
||||
COPY ../public .
|
||||
COPY ../.env .
|
||||
|
||||
CMD ["main"]
|
||||
|
Loading…
Reference in New Issue
Block a user