mirror of https://github.com/thumbsup/thumbsup
Fix behavior for non-traversable directories (#108)
fix(index): Continue on errors during find This ensures the gallery is created even when some files are inaccessible (for example due to invalid names or file permissions). Requires running the test in Docker as non-root to allow file access testpull/118/head
parent
bd86ab6535
commit
81a85004c2
@ -1,10 +1,18 @@
|
||||
# Node.js + build dependencies + runtime dependencies
|
||||
FROM thumbsupgallery/build:alpine
|
||||
|
||||
# Switch to a non-root user
|
||||
# So we can test edge-cases around file permissions
|
||||
RUN adduser -D tester
|
||||
RUN chown -R tester:tester /app
|
||||
USER tester
|
||||
|
||||
# Install and cache dependencies
|
||||
COPY package.json /app
|
||||
COPY --chown=tester package.json /app
|
||||
RUN npm install
|
||||
|
||||
# Copy the entire source code
|
||||
COPY --chown=tester . /app
|
||||
|
||||
# Run the tests
|
||||
COPY . /app
|
||||
RUN scripts/cibuild
|
||||
|
Loading…
Reference in New Issue