htmxui/Dockerfile

18 lines
335 B
Docker
Raw Normal View History

2024-10-19 01:49:16 +00:00
# Start with an Alpine base image
FROM alpine:latest
WORKDIR /app
# Copy the binary, public directory, and .env file
COPY target/release/htmxui /app/htmxui
# COPY public /app/public
# COPY .env /app/.env
# Ensure the main binary is executable
RUN chmod +x /app/htmxui
# Set the command to run the main binary
CMD ["/app/htmxui"]