update dockerfile for latest code update dependencies

This commit is contained in:
ssplatt committed 2021-05-21 11:27:09 -04:00
1 parent bda5920088
commit fc3037358d
1 file changed
+17 -3
+17 -3
View File
@@ -1,9 +1,23 @@
FROM node:15-alpine
FROM python:3-slim
ENV NODE_VERSION=node_16.x
ENV PYTHONUNBUFFERED 1
RUN apt-get update \
&& apt-get install -y curl gnupg lsb-release build-essential \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& DISTRO="$(lsb_release -s -c)" \
&& echo "deb https://deb.nodesource.com/$NODE_VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list \
&& echo "deb-src https://deb.nodesource.com/$NODE_VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN adduser --disabled-password --no-create-home superalgos
RUN chown -R superalgos:superalgos /app
RUN groupadd -r superalgos \
&& useradd --no-log-init -m -r -g superalgos superalgos \
&& chown -R superalgos:superalgos /app
USER superalgos
RUN node setup
EXPOSE 34248
EXPOSE 18041
ENTRYPOINT ["node", "run", "noBrowser"]