this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

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

update docker compose

pomdtr b8d120a5 364d9896

+44 -14
+1 -1
.envrc
··· 1 1 #!/bin/sh 2 2 source_up_if_exists 3 - export SMALLWEB_DIR="$PWD/examples" 3 + export SMALLWEB_DIR="$PWD/workspace"
+3 -3
.vscode/launch.json
··· 11 11 "--ssh-addr=:2222" 12 12 ], 13 13 "env": { 14 - "SMALLWEB_DIR": "${workspaceFolder}/examples", 14 + "SMALLWEB_DIR": "${workspaceFolder}/workspace", 15 15 }, 16 16 }, 17 17 { ··· 39 39 // your args here 40 40 ], 41 41 "env": { 42 - "SMALLWEB_DIR": "${workspaceFolder}/examples", 42 + "SMALLWEB_DIR": "${workspaceFolder}/workspace", 43 43 }, 44 44 }, 45 45 { ··· 53 53 "--ssh-addr=:2222" 54 54 ], 55 55 "env": { 56 - "SMALLWEB_DIR": "${workspaceFolder}/examples", 56 + "SMALLWEB_DIR": "${workspaceFolder}/workspace", 57 57 "OTEL_DENO": "true", 58 58 } 59 59 }
+5 -2
Dockerfile
··· 17 17 RUN curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr/local/deno sh -s "$DENO_VERSION" 18 18 ENV PATH="/usr/local/deno/bin:$PATH" 19 19 20 - ENV SMALLWEB_DIR=/smallweb 21 - VOLUME ["$SMALLWEB_DIR"] 20 + ARG UID=1000 21 + ARG GID=1000 22 + RUN groupadd -g $GID smallweb && useradd -m -s /bin/bash -u $UID -g $GID smallweb 22 23 24 + USER smallweb 25 + WORKDIR /home/smallweb 23 26 EXPOSE 7777 2222 24 27 ENTRYPOINT ["/usr/local/bin/smallweb"] 25 28 CMD [ "up", "--enable-crons", "--addr", ":7777", "--ssh-addr", ":2222"]
+14
compose.dev.yml
··· 1 + services: 2 + smallweb: 3 + build: 4 + context: . 5 + container_name: smallweb 6 + restart: unless-stopped 7 + ports: 8 + - 7777:7777 9 + - 2222:2222 10 + volumes: 11 + - ./workspace:/smallweb 12 + environment: 13 + - SMALLWEB_DIR=/home/smallweb/workspace 14 + - SMALLWEB_DOMAIN=smallweb.localhost
+13
compose.yml
··· 1 + services: 2 + smallweb: 3 + image: ghcr.io/pomdtr/smallweb:latest 4 + container_name: smallweb 5 + restart: unless-stopped 6 + ports: 7 + - 7777:7777 8 + - 2222:2222 9 + volumes: 10 + - ./workspace:/smallweb 11 + environment: 12 + - SMALLWEB_DIR=/home/smallweb/workspace 13 + - SMALLWEB_DOMAIN=smallweb.localhost
-8
docker-compose.yml
··· 1 - services: 2 - smallweb: 3 - image: ghcr.io/pomdtr/smallweb:latest 4 - ports: 5 - - 7777:7777 6 - - 2222:2222 7 - volumes: 8 - - ./examples:/smallweb
examples/.gitignore workspace/.gitignore
examples/.smallweb/config.json workspace/.smallweb/config.json
examples/.smallweb/plugins/edit.sh workspace/.smallweb/plugins/edit.sh
examples/cli/main.ts workspace/cli/main.ts
examples/env/main.ts workspace/env/main.ts
examples/error/main.ts workspace/error/main.ts
examples/hono/main.ts workspace/hono/main.ts
examples/ls/main.ts workspace/ls/main.ts
examples/www/index.md workspace/www/index.md
+8
goreleaser.yaml
··· 64 64 skip_upload: auto 65 65 install: |- 66 66 bin.install "smallweb" 67 + scoops: 68 + - name: smallweb 69 + repository: 70 + owner: pomdtr 71 + name: scoop-bucket 72 + 73 + homepage: https://smallweb.run 74 + description: You