diff --git a/backend/Dockerfile b/backend/Dockerfile index 2a27dd8..697935d 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,14 +1,14 @@ -# Use the official Node.js LTS (Long-Term Support) image as the base image -FROM node:14 +# Use the official Node.js LTS (Long-Term Support) +FROM --platform=linux/amd64 node:18-slim # Set the working directory inside the container -WORKDIR /app +WORKDIR /usr/src/app # Copy package.json and package-lock.json to the working directory COPY package*.json ./ # Install dependencies -RUN npm install --production \ +RUN npm install \ && npm install typescript -g @@ -19,7 +19,7 @@ COPY . . RUN npm run build # Expose the port your Node.js application is listening on -EXPOSE 3000 +EXPOSE 8080 # Define the command to start your Node.js application CMD ["node", "dist/server.js"]