Files
2025-12-27 21:15:45 -08:00

20 lines
454 B
Docker

# Use an official Node runtime as a parent image
FROM node:18
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy the current directory contents into the container at /usr/src/app
COPY . .
# Install any needed packages specified in package.json
RUN npm install
# Make port 80 available to the world outside this container
EXPOSE 1337
# Define environment variable
# Run app.js when the container launches
CMD ["node", "db.js"]