forked from vapor/api-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 930 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (26 loc) · 930 Bytes
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
# from https://github.com/vapor-community/docker
FROM vapor/vapor:1.0-xenial
# Check if we should install mysql header files to the container (Defualt: false)
ARG INSTALL_MYSQL=false
RUN if [ ${INSTALL_MYSQL} = true ]; then \
apt-get update && \
apt-get install -y libmysqlclient20 libmysqlclient-dev && \
rm -r /var/lib/apt/lists/* \
;fi
# Check if we should install postgres header files to the container (Defualt: false)
ARG INSTALL_PGSQL=false
RUN if [ ${INSTALL_PGSQL} = true ]; then \
apt-get update && \
apt-get install -y libpq-dev && \
rm -r /var/lib/apt/lists/* \
;fi
# Check if we should install sqlite header files to the container (Defualt: false)
ARG INSTALL_SQLITE=false
RUN if [ ${INSTALL_SQLITE} = true ]; then \
apt-get update && \
apt-get install -y libsqlite3-dev && \
rm -r /var/lib/apt/lists/* \
;fi
# Set work dir to /vapor
WORKDIR /vapor
EXPOSE 8080