2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00
vinyldns/docker/admin/Dockerfile
Ryan Emerle 6f63055a1d
Update update-support-user.py script (#965)
* Update usage to more clearly define params
* Fix error in help text re mysql port default
* Fix arg parsing in shell script
* Fix pulling latest proto regardless of local version
* Add clean up to docker run in shell script
* Remove unnecessary actions from Dockerfile
2020-08-17 16:13:37 -04:00

19 lines
522 B
Docker

FROM znly/protoc:0.4.0 as pbcompile
# Needs to protoc compile modules/core/src/main/protobuf/VinylDNSProto.proto
COPY VinylDNSProto.proto /vinyldns/target/
# Create a compiled protobuf in /vinyldns/target
RUN protoc --version && \
protoc --proto_path=/vinyldns/target --python_out=/vinyldns/target /vinyldns/target/VinylDNSProto.proto
FROM python:3.7-alpine
RUN pip install mysql-connector-python
COPY --from=pbcompile /vinyldns/target /app/
COPY update-support-user.py /app/update-support-user.py
WORKDIR /app