add entrypoint for db migration push
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -17,6 +17,7 @@ Thumbs.db
|
||||
.env.*
|
||||
!.env.example
|
||||
!.env.test
|
||||
pgdata
|
||||
|
||||
# Vite
|
||||
vite.config.js.timestamp-*
|
||||
|
||||
11
Dockerfile
11
Dockerfile
@@ -35,8 +35,15 @@ RUN pnpm install --frozen-lockfile --prod
|
||||
# Copy built application from builder
|
||||
COPY --from=builder /app/build ./build
|
||||
|
||||
# Install netcat for health checks
|
||||
RUN apk add --no-cache netcat-openbsd
|
||||
|
||||
# Copy entrypoint script
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
# Expose port (SvelteKit Node adapter default)
|
||||
EXPOSE 5173
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the application
|
||||
CMD ["node", "build"]
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
|
||||
@@ -9,6 +9,7 @@ services:
|
||||
POSTGRES_PASSWORD: mysecretpassword
|
||||
POSTGRES_DB: memento
|
||||
volumes:
|
||||
# - ~/tmp/pgdata:/var/lib/postgresql
|
||||
- ./pgdata:/var/lib/postgresql
|
||||
|
||||
app:
|
||||
|
||||
Reference in New Issue
Block a user