Astro config, dodanie hosta ze zmiennych, kopiowanie yamli i public olderu
This commit is contained in:
@@ -22,6 +22,10 @@ COPY --from=builder /app/dist ./dist
|
|||||||
COPY --from=builder /app/node_modules ./node_modules
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
|
# YAML + public (runtime needed!)
|
||||||
|
COPY --from=builder /app/src/content ./src/content
|
||||||
|
COPY --from=builder /app/public ./public
|
||||||
|
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
ENV PORT=4321
|
ENV PORT=4321
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ export default defineConfig({
|
|||||||
mode: "standalone"
|
mode: "standalone"
|
||||||
}),
|
}),
|
||||||
server: {
|
server: {
|
||||||
host: true,
|
host: process.env.HOST || '0.0.0.0',
|
||||||
port: 4321,
|
port: parseInt(process.env.PORT || '4321'),
|
||||||
},
|
},
|
||||||
integrations: [
|
integrations: [
|
||||||
tailwind({
|
tailwind({
|
||||||
|
|||||||
Reference in New Issue
Block a user