Skip to content

Commit

Permalink
Fix issue where docker couldnt run because it was in the wrong work dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke-6723 committed Dec 18, 2020
1 parent e659ac8 commit ff129fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ RUN apt-get -y install curl
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash
RUN apt-get -y install nodejs
#Set better shell because /bin/sh sux and doesnt support arrow keys
WORKDIR /web
WORKDIR /autodeploy
SHELL ["/bin/bash", "-c"]

# Copy package.json for dependencies
COPY package.json .

RUN npm install

CMD cd ./src && node .
CMD node .
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/src
- ./autodeploy/src:/src
- /var/run/docker.sock:/var/run/docker.sock
env_file: .env
ports:
Expand Down

0 comments on commit ff129fb

Please sign in to comment.