Skip to content

Instantly share code, notes, and snippets.

@malalanayake
Created January 11, 2018 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malalanayake/3469ac2802af9c6dff8aaaf9a8cc5c33 to your computer and use it in GitHub Desktop.
Save malalanayake/3469ac2802af9c6dff8aaaf9a8cc5c33 to your computer and use it in GitHub Desktop.
Dockerfile for WSO2 API manager
FROM java:8
MAINTAINER dinuka.malalanayake@gmail.com
ARG APIM_VERSION=${APIM_VERSION:-2.1.0}
RUN wget --user-agent="testuser" --referer="http://connect.wso2.com/wso2/getform/reg/new_product_download" http://product-dist.wso2.com/products/api-manager/${APIM_VERSION}/wso2am-${APIM_VERSION}.zip
RUN pwd
RUN ls -la
RUN apt-get update && \
apt-get install -y zip && \
apt-get clean && \
unzip wso2am-${APIM_VERSION}.zip -d /tmp && \
rm wso2am-${APIM_VERSION}.zip
EXPOSE 9443 9763 8243 8280 10397 7711
WORKDIR /tmp/wso2am-${APIM_VERSION}
ENTRYPOINT ["bin/wso2server.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment