mirror of
https://github.com/tiyn/amphora-wiki.git
synced 2025-04-19 15:27:46 +02:00
docker: modified files for local build
This commit is contained in:
parent
6b9c88e0de
commit
3286034cce
@ -1,10 +1,6 @@
|
|||||||
FROM ubuntu
|
FROM python:3
|
||||||
|
|
||||||
MAINTAINER Tiyn tiyn@martenkante.eu
|
MAINTAINER tiyn tiyn@mail-mk.eu
|
||||||
|
|
||||||
RUN apt-get update
|
|
||||||
|
|
||||||
RUN apt-get install python3 python3-pip -y
|
|
||||||
|
|
||||||
COPY src /wiki
|
COPY src /wiki
|
||||||
|
|
||||||
|
@ -77,9 +77,4 @@ Set the following ports with the -p tag.
|
|||||||
|
|
||||||
#### Example run-command
|
#### Example run-command
|
||||||
|
|
||||||
Either use the docker image `tiynger/amphora-wiki` or run
|
An example run command is shown in `rebuild.sh`.
|
||||||
`docker build . -t amphora-wiki` in the top directory of this repository.
|
|
||||||
If so you need to change the command below apropiately
|
|
||||||
(`tiynger/amphora-wiki` to `amphora-wiki`).
|
|
||||||
|
|
||||||
`docker run --name wiki --restart unless-stopped -v <absolute-path-to>/config.py:/wiki/src/config.py -v entries:/wiki/src/templates/entry -p 80:5000 -d tiynger/amphora-wiki`
|
|
||||||
|
9
rebuild.sh
Executable file
9
rebuild.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
docker stop amphora-wiki
|
||||||
|
docker rm amphora-wiki
|
||||||
|
docker build . -t tiyn/amphora-wiki
|
||||||
|
docker run --name amphora-wiki \
|
||||||
|
--restart unless-stopped \
|
||||||
|
-p "5000:5000" \
|
||||||
|
-e FLASK_ENV=development \
|
||||||
|
-d tiyn/amphora-wiki
|
Loading…
x
Reference in New Issue
Block a user