music-to-go/Dockerfile

18 lines
346 B
Docker
Raw Normal View History

2024-10-07 02:36:59 +00:00
# Start with an Alpine base image
2024-10-27 23:17:22 +00:00
FROM alpine:3.20
2024-10-07 02:36:59 +00:00
# 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"]