Skip to content

Commit

Permalink
Set permissions on start.sh in Dockerfile
Browse files Browse the repository at this point in the history
Fixes Haarlem#4 

The `docker-compose up` command failed because it could not execute `/start.sh` failing with the following error:

> ERROR: for web  Cannot start service web: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/start.sh\": permission denied": unknown
  • Loading branch information
Boris van Hoytema authored Sep 5, 2018
1 parent 6e6c158 commit 530afc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ RUN apk --no-cache add \

COPY ./src /app/src
COPY ./docker/start.sh /start.sh
RUN chmod +x /start.sh
RUN mkdir /app/log

COPY --from=build /app/env /app/env

ENV PATH="/app/env/bin:${PATH}"
WORKDIR /app
EXPOSE 8000
CMD ["/start.sh"]
CMD ["/start.sh"]

0 comments on commit 530afc0

Please sign in to comment.