Skip to content

Commit c0040ea

Browse files
author
Richard Carrée
committed
Copy the files during the build
This allows to have the files already ready at the first start and avoid any issue about empty root (https://mutagen.io/documentation/synchronization/safety-mechanisms#root-emptying). Fixes #442
1 parent 8057513 commit c0040ea

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git

mutagen/Dockerfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Use a minimal base image.
22
FROM alpine:latest
33

4+
# Create user and group wodby
5+
RUN set -ex; \
6+
addgroup -g 1000 -S wodby; \
7+
adduser -u 1000 -D -S -s /bin/bash -G wodby wodby;
8+
9+
# Copy application files
10+
COPY --chown=wodby:wodby app /var/www/html
11+
412
# Run a no-op entry point and wait to host Mutagen agent processes.
5-
ENTRYPOINT ["tail", "-f", "/dev/null"]
13+
ENTRYPOINT ["tail", "-f", "/dev/null"]

0 commit comments

Comments
 (0)