Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: dockerfile #3

Open
AntoP96 opened this issue Nov 3, 2023 · 0 comments
Open

Fix: dockerfile #3

AntoP96 opened this issue Nov 3, 2023 · 0 comments

Comments

@AntoP96
Copy link

AntoP96 commented Nov 3, 2023

Hi, I'm sorry, but while I was installing the DSP image, I noticed that at the end of the Docker file, when running the run.sh script, the installation was ending with an error. I corrected this error by adding the following to the Dockerfile:

RUN sed -i 's/\r$//' /run.sh && \
chmod +x /run.sh

Here is all of the modified code:

FROM docker:dind

RUN apk add --no-cache npm nodejs docker docker-compose python3 alpine-sdk git bash
#&& curl -sL https://deb.nodesource.com/setup_10.x | 
EXPOSE 18181

# VOLUME /var/lib/docker
RUN git clone https://github.com/giper45/DockerSecurityPlayground.git /opt/DockerSecurityPlayground

WORKDIR /opt/DockerSecurityPlayground

RUN npm install
COPY run.sh /run.sh

# ENTRYPOINT tail -f /dev/null
RUN sed -i 's/\r$//' /run.sh && \
chmod +x /run.sh
ENTRYPOINT /run.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant