๐Ÿ“๐Ÿ–ผ๏ธ๐Ÿน A small thing where I can upload a file and get a link back. https://media.strawmelonjuice.com/
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docker

+38 -1
+15
.dockerignore
··· 1 + node_modules 2 + Dockerfile* 3 + docker-compose* 4 + .dockerignore 5 + .git 6 + .gitignore 7 + README.md 8 + LICENSE 9 + .vscode 10 + Makefile 11 + helm-charts 12 + .env 13 + .editorconfig 14 + .idea 15 + coverage*
+14
Dockerfile
··· 1 + # Building the dashboard is not included in this Dockerfile, but is done by the mise task instead. 2 + # This may change later. 3 + 4 + FROM oven/bun:1 5 + WORKDIR /usr/src/app 6 + COPY index.ts ./ 7 + COPY dist/ ./dist/ 8 + RUN mkdir -p /usr/src/app/data/files 9 + RUN chown -R bun:bun /usr/src/app/data 10 + 11 + # Run the app 12 + USER bun 13 + EXPOSE 3000/tcp 14 + ENTRYPOINT ["bun", "run", "index.ts"]
+9 -1
mise.toml
··· 13 13 [tasks.build-dashboard] 14 14 depends = "generate-tailwind-styles" 15 15 run = [ 16 + "gleam export typescript-prelude > ./src/prelude.ts", 16 17 "gleam build --target javascript", 17 18 """ 18 19 echo 'import { main } from "./strawmediajuice_fe.mjs";document.addEventListener("DOMContentLoaded", main)' > "./build/dev/javascript/strawmediajuice_fe/strawmediajuice_fe.ts" ··· 28 29 29 30 [tasks.dev] 30 31 depends = ["build-dashboard"] 31 - run = ["gleam export typescript-prelude > ./dashboard/src/prelude.ts", "bun ./index.ts"] 32 + run = ["bun ./index.ts"] 32 33 dir = "{{ config_root }}" 33 34 34 35 [tasks.format] 35 36 run = ["prettier --write ..", "gleam format"] 36 37 dir = "{{ config_root }}/dashboard" 38 + 39 + [tasks.build-docker-image] 40 + depends = ["build-dashboard"] 41 + run = [ 42 + "docker build --pull -t strawmediajuice ." 43 + ] 44 + dir = "{{ config_root }}"