mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-14 11:36:51 +08:00
821b43d74f
* Enabling the usage of non root user in Docker * Added docker-entrypoint.sh to .goreleaser.yml * Renamed UID to PUID and GID to PGID
27 lines
613 B
Docker
27 lines
613 B
Docker
FROM --platform=$BUILDPLATFORM alpine:latest
|
|
|
|
# Install dependencies
|
|
RUN apk --no-cache add ca-certificates tzdata shadow su-exec
|
|
|
|
# Set the working directory
|
|
WORKDIR /listmonk
|
|
|
|
# Copy only the necessary files
|
|
COPY listmonk .
|
|
COPY config.toml.sample config.toml
|
|
COPY config-demo.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 ["./listmonk"]
|