|
|
@@ -7,17 +7,14 @@ RUN npm install -g pnpm nodemon
|
|
|
# Set up the working directory
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
-# Copy package.json and pnpm-lock.yaml
|
|
|
+# Copy over the package definitions
|
|
|
COPY package.json pnpm-lock.yaml ./
|
|
|
|
|
|
# Install dependencies
|
|
|
RUN pnpm install
|
|
|
|
|
|
-# Copy the rest of the application
|
|
|
+# Copy over the rest of the files
|
|
|
COPY . .
|
|
|
|
|
|
-# Expose the port the app runs on
|
|
|
-EXPOSE 1844
|
|
|
-
|
|
|
-# Start the server
|
|
|
-CMD [ "nodemon", "server.js" ]
|
|
|
+# What the container should run when it is started.
|
|
|
+CMD ["pnpm", "start"]
|