Files
markdownblog/Dockerfile
ZockerKatze 1922125adb yes
2025-06-16 17:47:03 +02:00

23 lines
424 B
Docker

# Use Node.js as the base image
FROM node:18
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json (if available)
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Create a directory for markdown files
RUN mkdir -p /markdown
# Expose the port your app runs on
EXPOSE 3000
# Command to run the application
CMD ["npm", "start"]