images
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
13b0d08d2c
commit
005ed5e5af
@ -1,9 +1,19 @@
|
|||||||
FROM node:lts-alpine as builder
|
FROM node:16
|
||||||
|
|
||||||
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . ./
|
|
||||||
RUN npm install && vite build
|
|
||||||
|
|
||||||
FROM nginx:alpine
|
# Copy package.json and package-lock.json to the working directory
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
# Install app dependencies
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# Copy the rest of your application code to the working directory
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Expose a port to communicate with the React app
|
||||||
|
EXPOSE 5173
|
||||||
|
|
||||||
|
# Start your React app
|
||||||
|
CMD ["npm", "run", "dev"]
|
Loading…
Reference in new issue