alfianwilfo
alfianwilfo
NNuxt
Created by alfianwilfo on 7/31/2024 in #❓・help
404 page not found
No description
5 replies
NNuxt
Created by alfianwilfo on 7/31/2024 in #❓・help
404 page not found
here's my dockerfile
# Use the official Node.js image as the base image
FROM node:18

# Set the working directory in the container
WORKDIR /usr/src/app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Build the Nuxt application
RUN npm run build

# Expose the port the app runs on
EXPOSE 3000

# Command to run the Nuxt application
CMD [ "npm", "run", "start" ]
# Use the official Node.js image as the base image
FROM node:18

# Set the working directory in the container
WORKDIR /usr/src/app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Build the Nuxt application
RUN npm run build

# Expose the port the app runs on
EXPOSE 3000

# Command to run the Nuxt application
CMD [ "npm", "run", "start" ]
5 replies