Skip to content

Commit

Permalink
Fix bug dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
apozohue10 committed Nov 22, 2018
1 parent 1dc74f9 commit 57ba014
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions extras/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
ARG OWNER "ging"
ARG REPOSITORY "fiware-pep-proxy"
ARG NODE_VERSION=8.12.0-slim
FROM node:${NODE_VERSION}

FROM node:8.12.0-slim
# Automated Docker file for Docker Hub
# This will retrieve the source code of the latest tagged release from GitHub

MAINTAINER FIWARE Wilma PEP Proxy Team. DIT-UPM

WORKDIR /opt

ENV OWNER=${OWNER}
ENV REPOSITORY=${REPOSITORY}
ARG OWNER
ENV OWNER ${OWNER:-ging}
ARG REPOSITORY
ENV REPOSITORY ${REPOSITORY:-fiware-pep-proxy}

WORKDIR /

RUN RELEASE=$(curl -s https://api.github.com/repos/"${OWNER}"/"${REPOSITORY}"/releases/latest | grep 'tag_name' | cut -d\" -f4) && \
RUN RELEASE=$(curl -s https://api.github.com/repos/${OWNER}/${REPOSITORY}/releases/latest | grep 'tag_name' | cut -d\" -f4) && \
echo "${RELEASE}" && \
apt-get update && \
apt-get install -y --no-install-recommends unzip && \
Expand Down

0 comments on commit 57ba014

Please sign in to comment.