-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (23 loc) · 913 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
# We have to specify a new-ish version of Debian
# to make sure we don't use an out of date image
FROM node:14-bullseye
RUN apt-get -y update && \
apt-get -y install redis-tools postgresql-client && \
apt-get -y install ca-certificates supervisor
WORKDIR /code
#COPY ./v1/package.json /code/v1/
#COPY ./v2/package.json /code/v2/
COPY ./package.json package.json
RUN npm install
#RUN npm --prefix v1 install
RUN npm --prefix v2 install
# We had to switch to native postgres bindings
# (using the pg-native module) for the purposes
# of building in Docker. I think this is necessary
# to support Postgres v14, but it will make things harder
# to build/run on weird platforms.
# https://github.com/brianc/node-postgres/issues/1508
ENV NODE_PG_FORCE_NATIVE=1
COPY ./ /code/
COPY ./supervisor/api.conf /etc/supervisor/conf.d/
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf", "-n"]