images
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
00718acef3
commit
cc2f17e0a5
@ -1,19 +1,9 @@
|
|||||||
FROM node:16
|
FROM node:lts-alpine as builder
|
||||||
|
|
||||||
# Set the working directory in the container
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
COPY . ./
|
||||||
|
RUN npm install && npm vite build
|
||||||
|
|
||||||
# Copy package.json and package-lock.json to the working directory
|
FROM nginx:alpine
|
||||||
COPY package*.json ./
|
|
||||||
|
|
||||||
# Install app dependencies
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
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 80
|
|
||||||
|
|
||||||
# Start your React app
|
|
||||||
CMD ["npm", "run", "dev"]
|
|
Loading…
Reference in new issue