morganmoskalyk
morganmoskalyk
RRailway
Created by morganmoskalyk on 2/6/2024 in #✋|help
Looking to deploy a react vite frontend with a Dockerfile, seem to get error and no logs
Hey, it seems like this should be a fairly simple task to perform, but I'm looking for help. Here's my Dockerfile
# Use a Node.js base image
FROM node:18

# Set the working directory in the Docker container
WORKDIR /app

# Install the 'serve' package globally
RUN npm install -g serve

# Copy the built static files from your dist folder to the Docker image
COPY ./dist /app

# Expose the port that 'serve' will run on
EXPOSE 80

# Command to serve the app using 'serve'
CMD ["serve", "-s", ".", "-l", "80"]
# Use a Node.js base image
FROM node:18

# Set the working directory in the Docker container
WORKDIR /app

# Install the 'serve' package globally
RUN npm install -g serve

# Copy the built static files from your dist folder to the Docker image
COPY ./dist /app

# Expose the port that 'serve' will run on
EXPOSE 80

# Command to serve the app using 'serve'
CMD ["serve", "-s", ".", "-l", "80"]
The result I get is: Application failed to respond Any help would be great thanks
10 replies