Skip to content

Commit 505af08

Browse files
author
Raffael Herrmann
committed
Change symlink to directory-based: ln -s /data /usr/share/nginx/html/data
1 parent bfc136c commit 505af08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV VERSION=${VERSION}
99
COPY public/ /usr/share/nginx/html/
1010

1111
# Create symlink for cleaner volume mounting
12-
RUN mkdir -p /data && ln -s /data/db.json /usr/share/nginx/html/data/db.json
12+
RUN ln -s /data /usr/share/nginx/html/data
1313

1414
# Replace version placeholder
1515
RUN sed -i "s/__VERSION__/${VERSION}/g" /usr/share/nginx/html/index.html

0 commit comments

Comments
 (0)