| | 1 | = Trac Alpine |
| | 2 | |
| | 3 | Create Dockerfile with content in following |
| | 4 | {{{ |
| | 5 | FROM alpine:3.11 |
| | 6 | RUN apk add --no-cache --upgrade bash |
| | 7 | ENV projectname="FoodFact" |
| | 8 | ENV user="admin" |
| | 9 | ENV password="admin" |
| | 10 | RUN apk update && apk upgrade |
| | 11 | RUN apk add trac |
| | 12 | RUN apk add apache2 |
| | 13 | RUN apk add apache2-utils |
| | 14 | RUN mkdir /trac |
| | 15 | COPY run.sh / |
| | 16 | RUN chmod +x /run.sh |
| | 17 | EXPOSE 8000 |
| | 18 | ENTRYPOINT "/run.sh" && /bin/ash |
| | 19 | }}} |
| | 20 | Then, we build the docker image with tag trac:alpine311 |
| | 21 | {{{ |
| | 22 | [krit docker trac-alpine]$ cat howtorun.txt |
| | 23 | docker build -t trac:alpine311 . |
| | 24 | #docker run -it -v ./myprojects:/trac --name trac -p 8000:8000 trac:alpine311 /bin/ash |
| | 25 | docker run -it -d --restart unless-stopped -v ./myprojects:/trac --name trac -p 8000:8000 trac:alpine311 /bin/ash |
| | 26 | [krit docker trac-alpine]$ |
| | 27 | }}} |