File size: 646 Bytes
a06f414 d96d156 a06f414 d8be24d d96d156 26a96db d8be24d 26a96db |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# 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"] |