Fix Dockerfile COPY syntax - use subdirectory path
This commit is contained in:
@@ -55,7 +55,8 @@ if grep -q "$PACKAGE_NAME" "$DOCKERFILE"; then
|
||||
else
|
||||
cp "$DOCKERFILE" "$DOCKERFILE.bak.$(date +%s)"
|
||||
|
||||
sed -i '/COPY nodes\//a\
|
||||
sed -i '/^COPY nodes\//a\
|
||||
RUN mkdir -p /opt/nextcloud-nodes/'"$PACKAGE_NAME"'\
|
||||
COPY nodes/'"$PACKAGE_NAME"' /opt/nextcloud-nodes/'"$PACKAGE_NAME"'\
|
||||
' "$DOCKERFILE"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user