Skip to content

Fix: dockerfile #3

@AntoP96

Description

@AntoP96

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions