parent
ff789ffd1e
commit
1ab64dbbbc
@ -5,12 +5,13 @@ COPY package*.json ./
|
|||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
RUN npx tailwindcss -i ./src/index.css -o ./dist/output.css --watch
|
||||||
|
|
||||||
# Stage 2: Serve the app from Nginx
|
# Stage 2: Serve the app from Nginx
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
# Copy the build output to replace the default nginx contents.
|
# Copy the build output to replace the default nginx contents.
|
||||||
COPY --from=build-stage /app/build/ /usr/share/nginx/html
|
COPY --from=build-stage /app/dist/ /usr/share/nginx/html
|
||||||
# Expose port 80 to the outside
|
# Expose port 80 to the outside
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
# Start Nginx when the container has provisioned.
|
# Start Nginx when the container has provisioned.
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off"]
|
||||||
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
|
<link href="/dist/output.css" rel="stylesheet">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>izaac frontend</title>
|
<title>izaac frontend</title>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user