code / Dockerfile
edwagbb's picture
Update Dockerfile
8322633 verified
raw
history blame contribute delete
404 Bytes
FROM debian:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y curl php nodejs python3 npm
RUN useradd -m -d /home/user -u 1000 user
RUN chown -R 1000 /home/user && chmod -R 700 /home/user
COPY /app /app
RUN cd /app/nodejs && npm install axios ws
RUN chmod -R 755 /app
USER 1000
WORKDIR /app
CMD php -S 0.0.0.0:7861 -t /app/php &\
cd /app/nodejs && node index.js 7860