-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from falconlee236/feat/add-dockerfile
[FEAT] 서버 dockerfile 추가
- Loading branch information
Showing
4 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#image | ||
FROM debian:bookworm | ||
|
||
# command directory | ||
WORKDIR /usr/src/irc_server | ||
|
||
RUN apt-get -qq update\ | ||
&& apt-get -qq install -y g++ make\ | ||
&& apt-get clean | ||
|
||
COPY . /usr/src/irc_server/ | ||
|
||
RUN chmod +x start.sh | ||
|
||
CMD [ "./start.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# IRC_Server | ||
IRC Webserver based RFC1459 | ||
|
||
|
||
### docker 접속 방법 | ||
```bash | ||
docker build --rm -t irc_server . | ||
docker run -p 3000:3000 irc_server | ||
``` | ||
### docker 실행중인거 삭제 방법 | ||
```bash | ||
docker rm -f $(docker ps -qa) | ||
``` | ||
|
||
`docker ps -qa`는 현재 실행하는 모든 컨테이너의 id를 출력 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
make re | ||
ls | ||
./ircserv |