-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile-dev
38 lines (23 loc) · 1.07 KB
/
Dockerfile-dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM debian:9
MAINTAINER [email protected]
RUN apt-get update && apt-get install --assume-yes htop nano mc cmake make cpp gcc libssl-dev g++ pkg-config libmariadbclient-dev-compat mysql-client flex mailutils uuid-dev git wget checkinstall
RUN apt-get install -y build-essential libssl-dev curl
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs valgrind
RUN npm install websockets mysql
EXPOSE 8087
EXPOSE 3307
EXPOSE 3311
# RUN history -s "rm -rf /comet/ && cp -R /cppcomet/ /comet && cd /comet/ && rm -rf /comet/dependencies/jwt-cpp/CMakeCache.txt && rm -rf /comet/CMakeCache.txt && cmake . && make"
CMD ["/bin/bash"]
# This file used for building .deb package
# Build docker with command
# docker build --tag debian-dev -f ./Dockerfile-dev .
# Start docker with command
# docker run -v $(pwd):/cppcomet -p=8087:8087 -p=3305:3305 -p=3316:3316 -it debian-dev:latest bash
# stop all containers:
# docker kill $(docker ps -q)
# remove all containers
# docker rm $(docker ps -a -q)
# remove all docker images
# docker rmi $(docker images -q)