Containerfile
· 257 B · Text
Raw
FROM ghcr.io/skunkwerks/freebsd-runtime:14.2
RUN env ASSUME_ALWAYS_YES=yes pkg bootstrap -qr FreeBSD
RUN pkg update -q
RUN pkg install -qy FreeBSD-openssl
RUN pkg upgrade -qy
RUN pkg install -qy lang/python3
entrypoint /usr/local/bin/python3 -m http.server
1 | FROM ghcr.io/skunkwerks/freebsd-runtime:14.2 |
2 | RUN env ASSUME_ALWAYS_YES=yes pkg bootstrap -qr FreeBSD |
3 | RUN pkg update -q |
4 | RUN pkg install -qy FreeBSD-openssl |
5 | RUN pkg upgrade -qy |
6 | RUN pkg install -qy lang/python3 |
7 | entrypoint /usr/local/bin/python3 -m http.server |
_README.md
· 757 B · Markdown
Raw
```
# podman build --no-hosts -t localhost/test .
STEP 1/7: FROM ghcr.io/skunkwerks/freebsd-runtime:14.2
STEP 2/7: RUN env ASSUME_ALWAYS_YES=yes pkg bootstrap -r FreeBSD
[6d6d157ed608] Installing pkg-2.1.0...
[6d6d157ed608] Extracting pkg-2.1.0: .......... done
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
...
STEP 7/7: entrypoint /usr/local/bin/python3 -m http.server
COMMIT localhost/test
--> 74e7b7da6017
Successfully tagged localhost/test:latest
74e7b7da6017ab882ec71077b62bae3ee89b5d9ce402c68eaffb2b9bc6e33f4f
```
```
# podman run -it --rm localhost/test:latest
Serving HTTP on :: port 8000 (http://[::]:8000/) ...
^c
```
# podman build --no-hosts -t localhost/test .
STEP 1/7: FROM ghcr.io/skunkwerks/freebsd-runtime:14.2
STEP 2/7: RUN env ASSUME_ALWAYS_YES=yes pkg bootstrap -r FreeBSD
[6d6d157ed608] Installing pkg-2.1.0...
[6d6d157ed608] Extracting pkg-2.1.0: .......... done
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
...
STEP 7/7: entrypoint /usr/local/bin/python3 -m http.server
COMMIT localhost/test
--> 74e7b7da6017
Successfully tagged localhost/test:latest
74e7b7da6017ab882ec71077b62bae3ee89b5d9ce402c68eaffb2b9bc6e33f4f
# podman run -it --rm localhost/test:latest
Serving HTTP on :: port 8000 (http://[::]:8000/) ...
^c