stashing code
This commit is contained in:
29
dockerfiles/admin.Dockerfile
Normal file
29
dockerfiles/admin.Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM node:22.11.0 AS base
|
||||
|
||||
RUN npm i -g bun
|
||||
|
||||
FROM base AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lockb turbo.json ./
|
||||
|
||||
COPY administrative/admin/package.json ./administrative/admin/package.json
|
||||
|
||||
COPY packages ./packages
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY administrative/admin ./administrative/admin
|
||||
|
||||
RUN bun install
|
||||
|
||||
RUN bun run build
|
||||
|
||||
COPY scripts ./scripts
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
RUN chmod +x scripts/prod.start.sh
|
||||
|
||||
CMD ["/bin/sh", "scripts/prod.start.sh", "administrative/admin"]
|
||||
18
dockerfiles/migrator.Dockerfile
Normal file
18
dockerfiles/migrator.Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM node:22.11.0 AS base
|
||||
|
||||
RUN npm i -g bun
|
||||
|
||||
FROM base AS primary
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lockb turbo.json ./
|
||||
|
||||
COPY packages/db packages/db
|
||||
COPY packages/airportsdb packages/airportsdb
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY scripts scripts
|
||||
|
||||
CMD ["/bin/sh", "/app/scripts/migrate.sh"]
|
||||
36
dockerfiles/ticket_scraper.Dockerfile
Normal file
36
dockerfiles/ticket_scraper.Dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
FROM python:3.13-slim-bookworm
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
bash wget gnupg curl zip unzip \
|
||||
libnss3 libatk1.0-0 libatk-bridge2.0-0 \
|
||||
libcups2 libxrandr2 libxss1 libasound2 \
|
||||
libxdamage1 libgbm-dev \
|
||||
libxcomposite1 libcurl4 xvfb \
|
||||
fonts-liberation libnspr4 chromium && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN useradd -m -d /home/bro -s /bin/bash bro
|
||||
|
||||
WORKDIR /home/bro/app
|
||||
|
||||
RUN chown -R bro:bro /home/bro
|
||||
|
||||
USER bro
|
||||
|
||||
ENV PATH="$PATH:/home/bro/.local/bin"
|
||||
|
||||
RUN pip install --user --no-cache-dir uv
|
||||
|
||||
RUN uv python install 3.13
|
||||
|
||||
COPY --chown=bro:bro workers/ticket_scraper/uv.lock workers/ticket_scraper/pyproject.toml workers/ticket_scraper/.python-version ./
|
||||
|
||||
RUN uv lock
|
||||
|
||||
COPY --chown=bro:bro workers/ticket_scraper ./
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENV CHROME_EXECUTABLE_PATH="/usr/bin/chromium"
|
||||
|
||||
CMD ["uv", "run", "python", "-m", "fastapi", "run", "--port=8080", "main.py"]
|
||||
29
dockerfiles/uno_fe.Dockerfile
Normal file
29
dockerfiles/uno_fe.Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM node:22.11.0 AS base
|
||||
|
||||
RUN npm i -g bun
|
||||
|
||||
FROM base AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lockb turbo.json ./
|
||||
|
||||
COPY frontends/uno-fe/package.json ./frontends/uno-fe/package.json
|
||||
|
||||
COPY packages ./packages
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY frontends/uno-fe ./frontends/uno-fe
|
||||
|
||||
RUN bun install
|
||||
|
||||
RUN bun run build
|
||||
|
||||
COPY scripts ./scripts
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
RUN chmod +x scripts/prod.start.sh
|
||||
|
||||
CMD ["/bin/sh", "scripts/prod.start.sh", "frontends/uno-fe"]
|
||||
Reference in New Issue
Block a user