mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-30 13:08:02 +08:00
e1dd3f06fe
PUBLISHED_FROM=c9cc54df1883aa17606de2b1ffb30f0cd687d037
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 -DMG_ENABLE_SSL -lssl -lcrypto
|
|
EXPOSE 8000
|
|
VOLUME ["/mongoose/certs"]
|
|
ENTRYPOINT ["/mongoose/load_balancer"]
|