mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39: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
|
# 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 \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user