still hate docker tho
This commit is contained in:
@@ -3,11 +3,11 @@ WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV ASTRO_DB_REMOTE_URL=libsql
|
||||
ENV DATABASE_URL=postgresql://memento:test@localhost:5432/memento
|
||||
|
||||
RUN npm install
|
||||
RUN npx astro db push --remote
|
||||
RUN npx astro build --remote
|
||||
RUN npx drizzle-kit push
|
||||
RUN npx astro build
|
||||
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=4321
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
services:
|
||||
memento:
|
||||
build: .
|
||||
ports:
|
||||
- 4321:4321
|
||||
|
||||
db:
|
||||
image: postgres:17
|
||||
ports:
|
||||
@@ -14,3 +9,8 @@ services:
|
||||
POSTGRES_PASSWORD: test
|
||||
POSTGRES_USER: memento
|
||||
|
||||
memento:
|
||||
build: .
|
||||
ports:
|
||||
- 4321:4321
|
||||
|
||||
|
||||
Reference in New Issue
Block a user