mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
Merge pull request #5 from nishizhen/feature/docker-publish-workflow
feat: Add Dockerfile and GitHub Actions for automated publishing
This commit is contained in:
commit
2b8573c87a
|
|
@ -35,9 +35,11 @@ RUN mkdir -p /app/www/
|
|||
# We are in the root of the project, so this copies everything
|
||||
COPY . /app/www/
|
||||
|
||||
# Set correct permissions for the web server to write to the data directory
|
||||
# The base image's init system will set ownership for /app, but let's ensure permissions are correct.
|
||||
RUN chmod -R 777 /app/www/data
|
||||
# Remove the original data directory from the source and symlink it to the /config volume's data subdir.
|
||||
# This ensures Grocy uses the persistent storage for its database and config,
|
||||
# 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
|
||||
RUN \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user