Everything for docker/docker compose done

At least the skeleton which is good enough for now, the flesh can be
filled out by us in a sec including ports for caddy reverse proxy
This commit is contained in:
Pagwin 2025-02-24 12:55:34 -05:00
parent 85645ce3d1
commit 8cc7ccfc3e
No known key found for this signature in database
GPG key ID: 81137023740CA260
7 changed files with 48 additions and 0 deletions

31
src/client/Dockerfile Normal file
View file

@ -0,0 +1,31 @@
FROM alpine:3.21
RUN mkdir /client
RUN apk add bash curl file git unzip which zip gcompat wget tar xz
ENTRYPOINT bash
WORKDIR /client
RUN wget -O flutter.tar.xz https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.29.0-stable.tar.xz
RUN tar xf flutter.tar.xz
RUN echo `ls`
ENV PATH="/client/flutter/bin/:${PATH}"
RUN git config --global --add safe.directory /client/flutter
RUN flutter upgrade
RUN flutter doctor
COPY ./* /client/
RUN flutter build web
WORKDIR /client/build/web
CMD ["dart", "run", "dhttpd"]

9
src/docker-compose.yml Normal file
View file

@ -0,0 +1,9 @@
version: "3"
services:
client:
build: ./client
server:
build: ./client
rev_proxy:
build: ./reverse-proxy

View file

@ -0,0 +1,3 @@
FROM caddy:2.9-alpine
COPY Caddyfile /etc/caddy/Caddyfile

View file

5
src/server/Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM node:23.8-alpine3.20
COPY . /srv
CMD ["node", "index.js"]