Spaces:
Sleeping
Sleeping
File size: 614 Bytes
9709a2d a18c844 9709a2d a18c844 9709a2d a18c844 9709a2d a18c844 9709a2d a18c844 9709a2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | FROM node:20-alpine
WORKDIR /app
# Install build dependencies including Python setuptools for node-gyp
RUN apk add --no-cache \
python3 \
py3-setuptools \
make \
g++ \
vips-dev \
vips-tools
# Fix Python distutils issue with node-gyp
ENV PYTHONPATH=/usr/lib/python3.12/site-packages
COPY package*.json ./
# Install dependencies
RUN npm install --omit=dev
COPY . .
RUN mkdir -p /data/photos /store/photos
EXPOSE 7860
ENV NODE_ENV=production
ENV PORT=7860
ENV DATA_DIR=/data
ENV PHOTOS_DIR=/data/photos
ENV STORE_DIR=/store
ENV STORE_PHOTOS_DIR=/store/photos
CMD ["node", "index.js"] |