mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2025-09-13 19:03:32 -06:00
Steve's initial commit
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# Use a lightweight Node image
|
||||
FROM node:18-alpine
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json first to leverage Docker caching
|
||||
COPY package.json .
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the application files
|
||||
COPY . .
|
||||
|
||||
# Expose port 3000 (the port your Node app will run on)
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the server
|
||||
CMD ["node", "app.js"]
|
Reference in New Issue
Block a user