2024-10-19 01:49:16 +00:00
|
|
|
# Start with an Alpine base image
|
2024-10-19 01:55:15 +00:00
|
|
|
FROM debian:bullseye
|
2024-10-19 01:49:16 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Copy the binary, public directory, and .env file
|
|
|
|
COPY target/release/htmxui /app/htmxui
|
2024-10-19 02:20:22 +00:00
|
|
|
COPY Rocket.toml /app/Rocket.toml
|
2024-10-25 01:46:50 +00:00
|
|
|
COPY public /app/public
|
2024-10-19 01:49:16 +00:00
|
|
|
# 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"]
|
|
|
|
|
|
|
|
|