ci: docker compose for easy access
This commit is contained in:
parent
a6edf804b4
commit
c42b8e2904
11 changed files with 249 additions and 13 deletions
21
apps/web/Dockerfile
Normal file
21
apps/web/Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM oven/bun:1.3.12 AS build
|
||||
WORKDIR /app
|
||||
ENV CI=1
|
||||
|
||||
ARG VITE_SERVER_URL=http://localhost:3000
|
||||
ENV VITE_SERVER_URL=${VITE_SERVER_URL}
|
||||
|
||||
COPY package.json bun.lock turbo.json tsconfig.json bts.jsonc ./
|
||||
COPY apps ./apps
|
||||
COPY packages ./packages
|
||||
|
||||
RUN bun install --frozen-lockfile
|
||||
RUN bun run --filter web build
|
||||
|
||||
FROM nginx:1.27-alpine AS runtime
|
||||
COPY apps/web/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/apps/web/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue