NodeJS-AI / Dockerfile
BasToTheMax's picture
Start in root
b72a5aa
FROM node:18-bullseye
RUN apt update -y
# RUN npm install -g @google-cloud/functions-framework
RUN adduser --home /home/container container
COPY . /home/container
COPY ./start.sh /
RUN chown -R container:container /home/container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
RUN npm install @google-cloud/functions-framework
RUN ls -lah
CMD ["bash", "/start.sh"]