mirror of
https://github.com/luxfhe/example-blind-auction.git
synced 2026-10-30 18:13:37 +00:00
20 lines
454 B
Docker
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"]
|