fix: jenkins, pt 4

This commit is contained in:
Araozu 2024-10-06 21:36:59 -05:00
parent e2e26a8c25
commit 3b110fc3a4
3 changed files with 17 additions and 8 deletions

17
Dockerfile Normal file
View 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"]

View File

@ -1,8 +0,0 @@
FROM alpine:3
COPY ../main .
COPY ../public .
COPY ../.env .
CMD ["main"]