First commit of the node docker image after move out of core
This commit is contained in:
commit
9ffd5c63d3
4 changed files with 124 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM node:18-bullseye
|
||||
|
||||
ARG SRV_UID="1000"
|
||||
ARG SRV_GID="100"
|
||||
ARG SRV_VERSION="0"
|
||||
|
||||
ENV SRV_UID $SRV_UID
|
||||
ENV SRV_GID $SRV_GID
|
||||
ENV SRV_VERSION $SRV_VERSION
|
||||
|
||||
RUN apt-get update -y && apt-get install -y jq \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN id $SRV_UID || useradd -s /bin/bash -d /app -u $SRV_UID -g $SRV_GID srv
|
||||
|
||||
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
USER $SRV_UID:$SRV_GID
|
||||
|
||||
ENV PATH "/app/node_modules/.bin:$PATH"
|
||||
|
||||
VOLUME /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
Loading…
Add table
Add a link
Reference in a new issue