piston/api/Dockerfile

20 lines
502 B
Docker
Raw Normal View History

2021-02-27 13:15:52 +01:00
FROM node:15.8.0-buster-slim
RUN dpkg-reconfigure -p critical dash
2021-03-13 06:01:04 +01:00
RUN apt-get update && \
apt-get install -y libxml2 gnupg tar coreutils util-linux && \
rm -rf /var/lib/apt/lists/*
2021-02-27 13:15:52 +01:00
RUN for i in $(seq 1001 1500); do \
2021-02-22 11:15:04 +01:00
groupadd -g $i runner$i && \
useradd -M runner$i -g $i -u $i ; \
done
2021-02-20 15:13:56 +01:00
ENV NODE_ENV=production
WORKDIR /piston_api
COPY ["package.json", "yarn.lock", "./"]
RUN yarn
COPY ./src ./src
CMD [ "node", "src", "-m", "-c", "/piston/config.yaml"]
2021-03-13 06:01:04 +01:00
EXPOSE 6969/tcp