keep-online / Dockerfile
ngoctuanai's picture
Create Dockerfile
1216dc3 verified
raw
history blame contribute delete
394 Bytes
FROM node:alpine
# Set the working directory
WORKDIR /app
# Copy only package.json and package-lock.json first to leverage Docker cache
COPY package*.json ./
# Install dependencies
RUN apk add --no-cache openssl curl && npm install
# Copy the rest of the application code
COPY . .
# Expose the application port
EXPOSE 7860
# Set the command to run the application
CMD ["node", "index.js"]