Containerfile
· 256 B · Text
Raw
FROM docker.io/freebsd/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 docker.io/freebsd/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
· 1.4 KiB · Markdown
Raw
```
# podman build --no-hosts -t localhost/test .
STEP 1/7: FROM docker.io/freebsd/freebsd-runtime:14.2
STEP 2/7: RUN env ASSUME_ALWAYS_YES=yes pkg bootstrap -qr FreeBSD
[01d3a964c584] Installing pkg-2.1.0...
[01d3a964c584] 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
--> 283f66cd12d6
STEP 3/7: RUN pkg update -q
--> d4fd110c8d3d
STEP 4/7: RUN pkg install -qy FreeBSD-openssl
--> de7b0ccbd468
STEP 5/7: RUN pkg upgrade -qy
Scanning /usr/share/certs/untrusted for certificates...
Scanning /usr/share/certs/trusted for certificates...
--> 3a77f6b0adbe
STEP 6/7: RUN pkg install -qy lang/python3
=====
Message from python311-3.11.11:
--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:
py311-gdbm databases/py-gdbm@py311
py311-sqlite3 databases/py-sqlite3@py311
py311-tkinter x11-toolkits/py-tkinter@py311
--> 7729f4b256b9
STEP 7/7: entrypoint /usr/local/bin/python3 -m http.server
COMMIT localhost/test
--> be9a7bf6844c
Successfully tagged localhost/test:latest
be9a7bf6844c83797012f9d5da350eb43cc664eaf5e9aff3b47078649ac025ea```
```
```
# 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 docker.io/freebsd/freebsd-runtime:14.2
STEP 2/7: RUN env ASSUME_ALWAYS_YES=yes pkg bootstrap -qr FreeBSD
[01d3a964c584] Installing pkg-2.1.0...
[01d3a964c584] 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
--> 283f66cd12d6
STEP 3/7: RUN pkg update -q
--> d4fd110c8d3d
STEP 4/7: RUN pkg install -qy FreeBSD-openssl
--> de7b0ccbd468
STEP 5/7: RUN pkg upgrade -qy
Scanning /usr/share/certs/untrusted for certificates...
Scanning /usr/share/certs/trusted for certificates...
--> 3a77f6b0adbe
STEP 6/7: RUN pkg install -qy lang/python3
=====
Message from python311-3.11.11:
--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:
py311-gdbm databases/py-gdbm@py311
py311-sqlite3 databases/py-sqlite3@py311
py311-tkinter x11-toolkits/py-tkinter@py311
--> 7729f4b256b9
STEP 7/7: entrypoint /usr/local/bin/python3 -m http.server
COMMIT localhost/test
--> be9a7bf6844c
Successfully tagged localhost/test:latest
be9a7bf6844c83797012f9d5da350eb43cc664eaf5e9aff3b47078649ac025ea```
# podman run -it --rm localhost/test:latest
Serving HTTP on :: port 8000 (http://[::]:8000/) ...
^c