Files
call-me/Dockerfile
T
2025-01-15 00:43:41 +01:00

21 lines
466 B
Docker

# Use a lightweight Node.js image
FROM node:lts-alpine
# Set working directory
WORKDIR /src
# Copy package.json and .env dependencies
COPY package.json .
COPY .env.template ./.env
# Install necessary system packages and dependencies
RUN npm install \
&& npm cache clean --force \
&& rm -rf /tmp/* /var/tmp/* /usr/share/doc/*
# Copy the application code
COPY app app
COPY public public
# Set default command to start the application
CMD ["npm", "start"]