-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 784 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM node:alpine
RUN [ -f "/usr/bin/apt-get" ] && apt-get update && apt-get install -y wget unzip git || apk add wget unzip git
ARG VERSION=0.2.10
ENV PPT_VERSION=$VERSION
# Create folder for python-paho-template ..
RUN mkdir -p /tmp/python-paho-template
# Download and setup python-paho-template ..
RUN wget https://github.com/asyncapi/python-paho-template/archive/v$PPT_VERSION.zip && \
unzip v$PPT_VERSION.zip && \
mv python-paho-template-$PPT_VERSION/* /tmp/python-paho-template/ && \
rm -r python-paho-template-* && rm v$PPT_VERSION.zip
RUN cd /tmp/python-paho-template && npm install -g @asyncapi/generator
WORKDIR /tmp/python-paho-template/code
COPY *.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/create-code.sh
ENTRYPOINT ["/usr/local/bin/create-code.sh"]