mempool/docker/backend/Dockerfile

27 lines
436 B
Docker
Raw Normal View History

2021-12-07 08:52:23 +01:00
FROM node:16.10.0-buster-slim AS builder
WORKDIR /build
COPY . .
2021-02-03 02:12:15 +01:00
RUN apt-get update
RUN apt-get install -y build-essential python3 pkg-config
RUN npm install
RUN npm run build
2021-02-03 02:12:15 +01:00
2021-12-07 08:52:23 +01:00
FROM node:16.10.0-buster-slim
WORKDIR /backend
COPY --from=builder /build/ .
RUN chmod +x /backend/start.sh
RUN chmod +x /backend/wait-for-it.sh
RUN chown -R 1000:1000 /backend && chmod -R 755 /backend
USER 1000
EXPOSE 8999
CMD ["/backend/start.sh"]