Merge pull request #5 from nishizhen/feature/docker-publish-workflow

feat: Add Dockerfile and GitHub Actions for automated publishing
This commit is contained in:
nishizhen 2025-08-15 19:02:26 +08:00 committed by GitHub
commit 2b8573c87a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,9 +35,11 @@ RUN mkdir -p /app/www/
# We are in the root of the project, so this copies everything # We are in the root of the project, so this copies everything
COPY . /app/www/ COPY . /app/www/
# Set correct permissions for the web server to write to the data directory # Remove the original data directory from the source and symlink it to the /config volume's data subdir.
# The base image's init system will set ownership for /app, but let's ensure permissions are correct. # This ensures Grocy uses the persistent storage for its database and config,
RUN chmod -R 777 /app/www/data # and is compatible with the volume structure from linuxserver/grocy.
RUN rm -rf /app/www/data && \
ln -s /config/data /app/www/data
# Install dependencies and perform cleanup # Install dependencies and perform cleanup
RUN \ RUN \