portainer / Dockerfile
goingyt's picture
Update Dockerfile
d96d156 verified
raw
history blame contribute delete
646 Bytes
# Use Alpine as the base image
FROM alpine:latest
# Install necessary packages including Portainer
RUN apk add --no-cache curl && \
curl -L https://github.com/portainer/portainer-ce/releases/latest/download/portainer-ce-linux-amd64 -o /usr/local/bin/portainer && \
chmod +x /usr/local/bin/portainer
# Create the data directory and set permissions
RUN mkdir -p /data && chown -R 1000:1000 /data
# Copy the entry point script
COPY start.sh /start.sh
# Make the entry point script executable
RUN chmod +x /start.sh
# Expose the Portainer web interface port
EXPOSE 9000
# Set the entrypoint to the custom script
ENTRYPOINT ["/start.sh"]