htmxui/Dockerfile
2024-10-24 20:46:50 -05:00

19 lines
369 B
Docker

# Start with an Alpine base image
FROM debian:bullseye
WORKDIR /app
# Copy the binary, public directory, and .env file
COPY target/release/htmxui /app/htmxui
COPY Rocket.toml /app/Rocket.toml
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"]