mirror of
https://github.com/kou029w/quot.git
synced 2025-01-18 16:08:03 +00:00
13 lines
435 B
Docker
13 lines
435 B
Docker
FROM postgrest/postgrest:v10.0.0 AS api
|
|
FROM amacneil/dbmate:1.15 AS dbmate
|
|
FROM node:18.7.0-alpine
|
|
RUN apk add --no-cache supervisor
|
|
COPY --from=api /bin/postgrest /usr/bin/
|
|
COPY --from=dbmate /usr/local/bin/dbmate /usr/bin/
|
|
COPY ./db ./db
|
|
COPY ./app ./app
|
|
RUN npm --prefix app ci --production
|
|
COPY ./docker-entrypoint.sh /
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
COPY ./supervisord.conf /
|
|
CMD ["supervisord", "-c", "/supervisord.conf"]
|