mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-01-02 03:37:54 +02:00
again a fix for linting
This commit is contained in:
parent
8eb02f536a
commit
bbae975128
@ -2,9 +2,9 @@
|
|||||||
#-----------------------------------------
|
#-----------------------------------------
|
||||||
FROM node:18-alpine3.17 AS builder
|
FROM node:18-alpine3.17 AS builder
|
||||||
RUN apk add --no-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \
|
RUN apk add --no-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \
|
||||||
python3 build-base sqlite-dev sqlite-libs imagemagick-dev libraw-dev vips-dev vips-heif vips-magick fftw-dev gcc g++ make libc6-compat && ln -snf /usr/bin/python3 /usr/bin/python
|
python3 build-base sqlite-dev sqlite-libs imagemagick-dev libraw-dev vips-dev vips-heif vips-magick fftw-dev gcc g++ make libc6-compat && ln -snf /usr/bin/python3 /usr/bin/python && \
|
||||||
|
rm /var/cache/apk/*
|
||||||
COPY pigallery2-release /app
|
COPY pigallery2-release /app
|
||||||
RUN rm /var/cache/apk/*
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN npm install --unsafe-perm --fetch-timeout=90000
|
RUN npm install --unsafe-perm --fetch-timeout=90000
|
||||||
RUN mkdir -p /app/data/config && \
|
RUN mkdir -p /app/data/config && \
|
||||||
@ -28,9 +28,9 @@ ENV NODE_ENV=production \
|
|||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
RUN apk add --no-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \
|
RUN apk add --no-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \
|
||||||
vips vips-cpp vips-heif vips-magick ffmpeg
|
vips vips-cpp vips-heif vips-magick ffmpeg && \
|
||||||
|
rm /var/cache/apk/*
|
||||||
COPY --from=builder /app /app
|
COPY --from=builder /app /app
|
||||||
RUN rm /var/cache/apk/*
|
|
||||||
|
|
||||||
# Run build time diagnostics to make sure the app would work after build is finished
|
# Run build time diagnostics to make sure the app would work after build is finished
|
||||||
RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json", "--Server-Log-level=silly"]
|
RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json", "--Server-Log-level=silly"]
|
||||||
|
Loading…
Reference in New Issue
Block a user