forked from soketi/soketi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (20 loc) · 714 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
ARG VERSION=lts
FROM node:$VERSION-alpine
LABEL maintainer="Renoki Co. <[email protected]>"
ENV PYTHONUNBUFFERED=1
COPY . /tmp/build
WORKDIR /tmp/build
RUN apk add --no-cache --update git python3 gcompat && \
apk add --virtual build-dependencies build-base gcc wget && \
ln -sf python3 /usr/bin/python && \
python3 -m ensurepip && \
pip3 install --no-cache --upgrade pip setuptools && \
ash ./build-minimal-production && \
mkdir -p /app && \
cd /tmp/build && \
mv production-app/* /app/ && \
rm -rf /tmp/* /var/cache/* /usr/lib/python* && \
apk --purge del build-dependencies build-base gcc
WORKDIR /app
EXPOSE 6001
ENTRYPOINT ["node", "/app/bin/server.js", "start"]