Download Dockerfile from launch-calcium/Gallery-Copper-Typescript: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/launch-calcium/Gallery-Copper-Typescript/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/launch-calcium/Gallery-Copper-Typescript/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/launch-calcium/Gallery-Copper-Typescript/resolve/main/Dockerfile
431 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y python3 make g++ sqlite3 && rm -rf /var/lib/apt/lists/* | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY tsconfig.json ./ | |
| COPY src/ ./src/ | |
| COPY views/ ./views/ | |
| COPY public/ ./public/ | |
| RUN npm run build | |
| RUN mkdir -p uploads/userpics uploads/thumbs uploads/normal | |
| EXPOSE 8080 | |
| ENV PORT=8080 | |
| ENV DATABASE_PATH=/app/data/gallery.db | |
| CMD ["node", "dist/index.js"] | |