Skip to content

Commit

Permalink
[Docker] Adição do Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AlGouvea committed Sep 6, 2024
1 parent 44a5bbf commit 0db128f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use an official Node.js runtime as a parent image
FROM node:18-alpine

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json (or yarn.lock) to the working directory
COPY package*.json ./

# Install project dependencies
RUN npm install

# Copy the rest of the application code to the working directory
COPY . .

# Expose the port that Vite runs on
EXPOSE 5173

# Serve the built files
CMD ["npm", "run", "dev"]

0 comments on commit 0db128f

Please sign in to comment.