mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-15 01:29:00 +08:00
11 lines
365 B
Docker
11 lines
365 B
Docker
FROM cesanta/mongoose
|
|
|
|
COPY load_balancer.c /mongoose/
|
|
WORKDIR /mongoose
|
|
RUN mkdir /mongoose/certs; \
|
|
sed -i 's:#include "../../mongoose.h":#include "mongoose.h":' load_balancer.c; \
|
|
cc load_balancer.c mongoose.c -o load_balancer -W -Wall -pthread -DNS_ENABLE_SSL -lssl -lcrypto
|
|
EXPOSE 8000
|
|
VOLUME ["/mongoose/certs"]
|
|
ENTRYPOINT ["/mongoose/load_balancer"]
|