Skip to content

Commit

Permalink
Merge pull request #186 from chhsiao1981/dockerfile
Browse files Browse the repository at this point in the history
cp /opt/bbs/bin to /home/bbs/bin
  • Loading branch information
chhsiao1981 authored Apr 19, 2021
2 parents c15219a + 1b889de commit 5b28dd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ RUN ./scripts/openrestry.sh

# cmd
WORKDIR /home/bbs
CMD ["sh", "-c", "sudo -iu bbs /home/bbs/bin/shmctl init && sudo -iu bbs /home/bbs/bin/logind && /usr/bin/openresty && sudo -iu bbs /srv/go-pttbbs/go-pttbbs -ini production.ini"]
CMD ["sh", "-c", "cp /opt/bbs/bin/* /home/bbs/bin && sudo -iu bbs /home/bbs/bin/shmctl init && sudo -iu bbs /home/bbs/bin/logind && /usr/bin/openresty && sudo -iu bbs /srv/go-pttbbs/go-pttbbs -ini production.ini"]

EXPOSE 3456
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
ports:
- "127.0.0.1:3456:3456"
- "127.0.0.1:8889:8888"
- "127.0.0.1:48764:48763"
- "127.0.0.1:48765:48763"
restart: always
volumes:
- ${BBSHOME}:/home/bbs

0 comments on commit 5b28dd3

Please sign in to comment.