18 lines
348 B
Docker
18 lines
348 B
Docker
|
# 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"]
|
||
|
|