Files
2025-02-20 18:04:25 +01:00

23 lines
462 B
Docker

# Specify the base image
FROM node:lts-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy package.json and package-lock.json
COPY package.json package-lock.json ./
# Install only production dependencies
RUN npm install --omit=dev
# Copy the rest of application's source code
COPY src/ ./src
# Copy local certificates
COPY *.pem .
# Expose the port the app runs on
EXPOSE 3000
# Command to run your app
CMD ["node", "src/index.js"]