27 lines
566 B
Docker
27 lines
566 B
Docker
|
|
FROM alpine:latest
|
||
|
|
|
||
|
|
# Install dependencies
|
||
|
|
RUN apk --no-cache add ca-certificates tzdata shadow su-exec
|
||
|
|
|
||
|
|
# Set the working directory
|
||
|
|
WORKDIR /eaglecast
|
||
|
|
|
||
|
|
# Copy only the necessary files
|
||
|
|
COPY eaglecast .
|
||
|
|
COPY config.toml.sample config.toml
|
||
|
|
|
||
|
|
# Copy the entrypoint script
|
||
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||
|
|
|
||
|
|
# Make the entrypoint script executable
|
||
|
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||
|
|
|
||
|
|
# Expose the application port
|
||
|
|
EXPOSE 9000
|
||
|
|
|
||
|
|
# Set the entrypoint
|
||
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||
|
|
|
||
|
|
# Define the command to run the application
|
||
|
|
CMD ["./eaglecast"]
|