forked from datamade/code-challenge-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 786 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 786 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 node:25-slim AS node
# Inside the container, create an app directory and switch into it
RUN mkdir /app
WORKDIR /app
COPY ./package.json package.json
RUN npm install
FROM python:3.14.3 AS app
LABEL maintainer "DataMade <info@datamade.us>"
RUN apt-get update && \
apt-get install -y --no-install-recommends --purge postgresql-client gdal-bin && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
RUN mkdir /app
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Get NodeJS & npm
COPY --from=node /usr/local/bin /usr/local/bin
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
# Get app dependencies
COPY --from=node /app/node_modules /app/node_modules
COPY . /app