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

Change the Dockerfile RUN bash to RUN sh #16

Closed
rjain-pivotal opened this issue Mar 16, 2016 · 2 comments
Closed

Change the Dockerfile RUN bash to RUN sh #16

rjain-pivotal opened this issue Mar 16, 2016 · 2 comments

Comments

@rjain-pivotal
Copy link

FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD gs-spring-boot-docker-0.1.0.jar app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

The alpine oracle Docker image doesn't have bash
Change the RUN command
RUN sh -c 'touch /app.jar'

@dsyer
Copy link
Contributor

dsyer commented Mar 16, 2016

Ouch, good catch . I should have spotted that.

@willis7
Copy link

willis7 commented Mar 21, 2016

This caught me out too, an update on the guide may help others

@dsyer dsyer closed this as completed in 958e596 Mar 21, 2016
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

3 participants