Curl not loading file inside container on build
Below is my Dockerfile, no matter which option I tried, the react-dom.js file doesn't end up inside the container at / app / js / location.
FROM resin/rpi-raspbian:wheezy
ENV PYTHON_VERSION 2.7.13
# Install dependencies
RUN apt-get update && \
apt-get -y install curl && \
apt-get -y install vim && \
apt-get -y install python2.7-minimal && \
apt-get -y install python-pip && \
apt-get -y install python-dev && \
apt-get -y install gcc && \
rm -rf /var/lib/apt/lists/*
# RUN apt-get -y install vim
RUN mkdir -p /app/js/
VOLUME ["/app/"]
# Define working directory
WORKDIR /app/
RUN curl -sf -o /app/js/react-dom.js -L https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.js
+3
source to share
1 answer
I ran your dockerfile and it just works.
I am assuming the image you are using did not have a fairly recent ssl certificate package.
The image you are using ( resin/rpi-raspbian:wheezy
) has been released since the last time you used it!
Just pull in a new image and rebuild the container and you should be good!
0
source to share