Skip to content

Commit

Permalink
add env variables
Browse files Browse the repository at this point in the history
- Adding PUID PGID and UMASK variables with defaults
  • Loading branch information
Drazzilb08 committed Feb 2, 2024
1 parent da50868 commit 311a6e9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ ENV XDG_CONFIG_HOME=/config
ENV US_CONFIG=/config/config.yml
ENV US_LOGS=/config/logs
ENV TZ=America/Los_Angeles
ENV PUID=100
ENV PGID=99
ENV UMASK=002

# Delete unnecessary setup files
RUN set -eux; \
Expand Down Expand Up @@ -73,17 +76,17 @@ RUN rclone --version
# Copy the application source code into the container
COPY . .

# Copy config contents to /config

# Create a volume for the configuration files
VOLUME /config

# Give permissions to all files under /app/scripts
RUN chmod -R 777 /app/scripts

# Set the entry point for the container
CMD ["python", "main.py"]

# Entry point to start the container
RUN chmod +x start.sh

# Start the container
ENTRYPOINT ["bash", "./start.sh"]
ENTRYPOINT ["bash", "./start.sh"]

0 comments on commit 311a6e9

Please sign in to comment.