feat(docker): init Dockerfile
This commit is contained in:
parent
0d7a5d4ccd
commit
3940b4cec7
4 changed files with 32 additions and 1 deletions
1
.dockerignore
Symbolic link
1
.dockerignore
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
.gitignore
|
||||||
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
FROM python:3.10-slim
|
||||||
|
|
||||||
|
LABEL org.label-schema.schema-version="1.0"
|
||||||
|
LABEL org.label-schema.vendor="Tiara Rodney (victoryk.it)"
|
||||||
|
LABEL org.label-schema.name="victorykit/httpaste"
|
||||||
|
LABEL org.label-schema.description="a versatile HTTP pastebin"
|
||||||
|
LABEL org.label-schema.vcs-url="https://bitbucket.org/victorykit/docker-selenium-grid"
|
||||||
|
LABEL org.label-schema.docker.cmd="docker run {image-id} {httpaste-args}"
|
||||||
|
LABEL org.label-schema.version=$BUILD_VERSION
|
||||||
|
LABEL org.label-schema.build-date=$BUILD_DATE
|
||||||
|
|
||||||
|
WORKDIR /usr/local/src/httpaste
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y libffi-dev gcc && \
|
||||||
|
python3 setup.py install && \
|
||||||
|
apt-get remove -y libffi-dev gcc && apt-get autoremove -y && apt-get clean -y
|
||||||
|
|
||||||
|
ENTRYPOINT ["httpaste"]
|
||||||
9
tox.ini
9
tox.ini
|
|
@ -35,6 +35,15 @@ deps =
|
||||||
commands =
|
commands =
|
||||||
python3 -m build {posargs}
|
python3 -m build {posargs}
|
||||||
|
|
||||||
|
[testenv:build-docker]
|
||||||
|
description = build docker image
|
||||||
|
passenv =
|
||||||
|
DOCKER_*
|
||||||
|
allowlist_externals =
|
||||||
|
docker
|
||||||
|
sh
|
||||||
|
commands =
|
||||||
|
docker image build -t victorykit/httpaste .
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
description = build documentation
|
description = build documentation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue