Files
Showy/backend/Dockerfile

19 lines
319 B
Docker

FROM node:18-alpine
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm i
# Copy the rest of the application files
COPY backend/* .
# Expose the port your backend uses
EXPOSE 4000
# Start the application
CMD ["node", "server.js"]