CoolFace
Apppublic

Maybeeeee/Pool

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Dockerfile77 linesDownload Raw Back to root
1# Use the official Node.js image based on Debian Bullseye Slim as the base image2 3FROM node:18-bullseye-slim4 5 6 7# Update the package list and install git8 9RUN apt-get update && \10 11apt-get install -y git12 13 14 15# Clone the repository from the provided GitHub URL into the /app directory16 17RUN git clone https://github.com/cg-dot/oai-reverse-proxy.git /app18 19 20 21# Set the working directory to /app22 23WORKDIR /app24 25 26 27# Change ownership of the /app directory to user with UID 1000 and group with GID 100028 29RUN chown -R 1000:1000 /app30 31 32 33# Switch to the user with UID 100034 35USER 100036 37 38 39# Install npm dependencies40 41RUN npm install42 43 44 45# Copy the Dockerfile, greeting.md, and any .env files to the current working directory46 47COPY Dockerfile greeting.md* .env* ./48 49 50 51# Run the build script defined in package.json52 53RUN npm run build54 55 56 57# Expose port 7860 to the outside world58 59EXPOSE 786060 61 62 63# Set environment variable NODE_ENV to production64 65ENV NODE_ENV=production66 67 68 69# Set Node.js options to limit the old space (heap) size70 71ENV NODE_OPTIONS="--max-old-space-size=12882"72 73 74 75# Define the command to start the application76 77CMD [ "npm", "start" ]