-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfilepythonslim
31 lines (27 loc) · 1.21 KB
/
Dockerfilepythonslim
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
# FROM python:slim
# FROM python:3.11.6-slim-bullseye
# FROM continuumio/miniconda3:23.3.1-0-alpine
FROM mambaorg/micromamba:alpine3.19
USER root
RUN apk add --update nano git nodejs npm python3 py3-pip g++ wget && rm -rf /var/cache/apk/*
# RUN apt-get update && apt-get install -y nodejs npm nano && rm -rf /var/lib/apt/lists/*
ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN python -m pip install --upgrade pip
RUN python -m pip install openiap numpy
# RUN apt-get update && apt-get install -y wget bzip2 \
# && wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba \
# && touch /root/.bashrc \
# && ./bin/micromamba shell init -s bash -r /opt/conda \
# && grep -v '[ -z "\$PS1" ] && return' /root/.bashrc > /opt/conda/bashrc \
# && apt-get clean autoremove --yes \
# && rm -rf /var/lib/{apt,dpkg,cache,log}
WORKDIR /tmp
COPY package.json /tmp/package.json
COPY package-lock.json /tmp/package-lock.json
COPY bin /tmp/bin
RUN npm install --omit=dev --production --verbose
COPY dist /tmp/dist
# load current version
# RUN npx -y @openiap/nodeagent -noop
# CMD ["npx", "-y", "@openiap/nodeagent", "-service"]
CMD ["node", "--require", "./dist/Logger.js", "dist/runagent.js"]