Update Dockerfile
Browse files- Dockerfile +11 -14
Dockerfile
CHANGED
|
@@ -14,19 +14,14 @@ ENV XDG_DATA_HOME="/config" \
|
|
| 14 |
XDG_CONFIG_HOME="/config" \
|
| 15 |
TMPDIR=/run/jackett-temp
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
-
# Set
|
| 21 |
-
|
| 22 |
-
PATH=/home/user/.local/bin:$PATH
|
| 23 |
-
|
| 24 |
-
# Set the working directory to the user's home directory
|
| 25 |
-
WORKDIR $HOME/app
|
| 26 |
|
| 27 |
# Install packages as root
|
| 28 |
-
USER root
|
| 29 |
-
|
| 30 |
RUN \
|
| 31 |
echo "**** install packages ****" && \
|
| 32 |
apk --no-cache add \
|
|
@@ -53,13 +48,15 @@ RUN \
|
|
| 53 |
echo "**** cleanup ****" && \
|
| 54 |
rm -rf /tmp/*
|
| 55 |
|
| 56 |
-
#
|
| 57 |
-
USER user
|
| 58 |
-
|
| 59 |
-
# Create the /root directory within the container (for use by the application, if needed)
|
| 60 |
RUN mkdir -p /root
|
| 61 |
|
| 62 |
# Ports and volumes
|
| 63 |
VOLUME /config
|
| 64 |
|
| 65 |
EXPOSE 9117
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
XDG_CONFIG_HOME="/config" \
|
| 15 |
TMPDIR=/run/jackett-temp
|
| 16 |
|
| 17 |
+
# Set home to root and working directory
|
| 18 |
+
ENV HOME=/root \
|
| 19 |
+
PATH=/root/.local/bin:$PATH
|
| 20 |
|
| 21 |
+
# Set the working directory
|
| 22 |
+
WORKDIR /root/app
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# Install packages as root
|
|
|
|
|
|
|
| 25 |
RUN \
|
| 26 |
echo "**** install packages ****" && \
|
| 27 |
apk --no-cache add \
|
|
|
|
| 48 |
echo "**** cleanup ****" && \
|
| 49 |
rm -rf /tmp/*
|
| 50 |
|
| 51 |
+
# Create the /root directory within the container (if not present)
|
|
|
|
|
|
|
|
|
|
| 52 |
RUN mkdir -p /root
|
| 53 |
|
| 54 |
# Ports and volumes
|
| 55 |
VOLUME /config
|
| 56 |
|
| 57 |
EXPOSE 9117
|
| 58 |
+
|
| 59 |
+
# Copy local files to the image
|
| 60 |
+
COPY root/ /
|
| 61 |
+
|
| 62 |
+
# Set the entrypoint or command (if applicable)
|