Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -1,11 +1,14 @@
|
|
1 |
# Use Alpine as the base image
|
2 |
FROM alpine:latest
|
3 |
|
4 |
-
# Install Portainer
|
5 |
RUN apk add --no-cache curl && \
|
6 |
curl -L https://github.com/portainer/portainer-ce/releases/latest/download/portainer-ce-linux-amd64 -o /usr/local/bin/portainer && \
|
7 |
chmod +x /usr/local/bin/portainer
|
8 |
|
|
|
|
|
|
|
9 |
# Copy the entry point script
|
10 |
COPY start.sh /start.sh
|
11 |
|
|
|
1 |
# Use Alpine as the base image
|
2 |
FROM alpine:latest
|
3 |
|
4 |
+
# Install necessary packages including Portainer
|
5 |
RUN apk add --no-cache curl && \
|
6 |
curl -L https://github.com/portainer/portainer-ce/releases/latest/download/portainer-ce-linux-amd64 -o /usr/local/bin/portainer && \
|
7 |
chmod +x /usr/local/bin/portainer
|
8 |
|
9 |
+
# Create the data directory and set permissions
|
10 |
+
RUN mkdir -p /data && chown -R 1000:1000 /data
|
11 |
+
|
12 |
# Copy the entry point script
|
13 |
COPY start.sh /start.sh
|
14 |
|