Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +8 -9
Dockerfile
CHANGED
|
@@ -9,17 +9,17 @@ LABEL org.opencontainers.image.url="https://github.com/cmj2002/warp-docker"
|
|
| 9 |
LABEL WARP_VERSION=${WARP_VERSION}
|
| 10 |
LABEL COMMIT_SHA=${COMMIT_SHA}
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
COPY entrypoint.sh /entrypoint.sh
|
| 13 |
COPY ./healthcheck /healthcheck
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
RUN
|
| 17 |
-
"linux/amd64") export ARCH="amd64" ;; \
|
| 18 |
-
"linux/arm64") export ARCH="armv8" ;; \
|
| 19 |
-
*) echo "Unsupported TARGETPLATFORM: ${TARGETPLATFORM}" && exit 1 ;; \
|
| 20 |
-
esac && \
|
| 21 |
-
echo "Building for ${ARCH} with WARP ${WARP_VERSION}" &&\
|
| 22 |
-
apt-get update && \
|
| 23 |
apt-get upgrade -y && \
|
| 24 |
apt-get install -y curl gnupg lsb-release sudo jq ipcalc && \
|
| 25 |
curl https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg && \
|
|
@@ -30,7 +30,6 @@ RUN case ${TARGETPLATFORM} in \
|
|
| 30 |
apt-get autoremove -y && \
|
| 31 |
chmod +x /entrypoint.sh && \
|
| 32 |
chmod +x /healthcheck/index.sh && \
|
| 33 |
-
useradd -m -s /bin/bash warp && \
|
| 34 |
echo "warp ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/warp
|
| 35 |
|
| 36 |
USER warp
|
|
|
|
| 9 |
LABEL WARP_VERSION=${WARP_VERSION}
|
| 10 |
LABEL COMMIT_SHA=${COMMIT_SHA}
|
| 11 |
|
| 12 |
+
# Create a user with user ID 1000
|
| 13 |
+
RUN useradd -m -u 1000 -s /bin/bash warp
|
| 14 |
+
|
| 15 |
+
# Set the working directory for the warp user
|
| 16 |
+
WORKDIR /home/warp
|
| 17 |
+
|
| 18 |
COPY entrypoint.sh /entrypoint.sh
|
| 19 |
COPY ./healthcheck /healthcheck
|
| 20 |
|
| 21 |
+
# Install dependencies and necessary packages
|
| 22 |
+
RUN apt-get update && \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
apt-get upgrade -y && \
|
| 24 |
apt-get install -y curl gnupg lsb-release sudo jq ipcalc && \
|
| 25 |
curl https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg && \
|
|
|
|
| 30 |
apt-get autoremove -y && \
|
| 31 |
chmod +x /entrypoint.sh && \
|
| 32 |
chmod +x /healthcheck/index.sh && \
|
|
|
|
| 33 |
echo "warp ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/warp
|
| 34 |
|
| 35 |
USER warp
|