youtuber-blog-frontend/Dockerfile
2024-05-29 21:09:21 +02:00

22 lines
417 B
Docker

# Use the official Node.js image
FROM node:18-alpine
# Create and set the working directory
WORKDIR /app
# Copy the build folder to the working directory
COPY build ./build
COPY package.json ./build/
# Change directory to the build folder
WORKDIR /app/build
RUN npm install
# Make port 3000 available to the world outside this container, if necessary
EXPOSE 3000
# Run the application
CMD ["node", "index.js"]