-
Notifications
You must be signed in to change notification settings - Fork 285
/
Dockerfile
34 lines (29 loc) · 867 Bytes
/
Dockerfile
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
# translate/pootle:dev-mariadb
#
# VERSION 0.0.1
MAINTAINER Ryan Northey <ryan@synca.io>
# Build stage
FROM translate/pootle:build
COPY ./settings.conf /tmp/
RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt-get update -qq \
&& apt-get install -qq -y \
--no-install-recommends \
libmariadbclient-dev-compat
USER pootle
RUN bash -c " \
cd "$INSTALL_DIR" \
&& . bin/activate \
&& pip install -q \
MySQL-python \
&& cp /tmp/settings.conf \
/home/pootle/pootle_env/pootle.conf"
# Mariadb dev
FROM translate/pootle:base
ENV POOTLE_ENV=mariadb
RUN apt-get update -qq \
&& apt-get install -qq -y \
--no-install-recommends \
libmariadbclient18 \
mariadb-client
COPY --chown=pootle:pootle --from=0 /home/pootle/ /home/pootle