Files
Martinhal_Contact_Site/dockerfile
T
2026-09-13 20:18:51 +01:00

24 lines
350 B
Docker

FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package.json ./
# Install dependencies
RUN npm install
# Copy application files
COPY index.html ./
COPY credentials.json ./
COPY server.js ./
# Create backups directory
RUN mkdir -p /app/backups
# Expose port
EXPOSE 8000
# Start the server
CMD ["npm", "start"]