Compare commits
1
Commits
+2
-2
@@ -1,2 +1,2 @@
|
|||||||
NUXT_PUBLIC_URL=http://localhost:3000
|
# Public URL of the website
|
||||||
NUXT_PUBLIC_API=http://localhost:5555
|
NUXT_SITE_URL=http://localhost:3000
|
||||||
|
|||||||
-28
@@ -1,28 +0,0 @@
|
|||||||
# BUILD
|
|
||||||
FROM node:22-bookworm AS build
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
ARG NUXT_PUBLIC_API
|
|
||||||
ENV NUXT_PUBLIC_API $NUXT_PUBLIC_API
|
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
|
||||||
RUN yarn install
|
|
||||||
|
|
||||||
COPY . ./
|
|
||||||
|
|
||||||
RUN yarn run build
|
|
||||||
|
|
||||||
# RUN
|
|
||||||
FROM node:22-bookworm AS run
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
|
||||||
RUN yarn install --production
|
|
||||||
|
|
||||||
COPY --from=build /app/.output/ ./
|
|
||||||
|
|
||||||
ENV PORT=80
|
|
||||||
ENV HOST=0.0.0.0
|
|
||||||
|
|
||||||
EXPOSE 80
|
|
||||||
CMD ["node", "/app/server/index.mjs"]
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
services:
|
|
||||||
si:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
# args:
|
|
||||||
# NUXT_SITE_URL: "http://localhost:3000"
|
|
||||||
# ports:
|
|
||||||
# - "5999:80"
|
|
||||||
environment:
|
|
||||||
NODE_ENV: production
|
|
||||||
NUXT_PUBLIC_URL: "http://localhost:3000"
|
|
||||||
NUXT_PUBLIC_API: "http://localhost:5555"
|
|
||||||
restart: always
|
|
||||||
@@ -33,4 +33,12 @@ export default defineNuxtConfig({
|
|||||||
{ name: 'Titillium Web', provider: 'google' }
|
{ name: 'Titillium Web', provider: 'google' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app: {
|
||||||
|
head: {
|
||||||
|
link: [
|
||||||
|
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user