fix: pnpm with docker

This commit is contained in:
Endercheif 2023-03-01 15:25:08 -08:00
parent 2962e0cf99
commit 2d8c26f156
No known key found for this signature in database
GPG Key ID: 7767459A0C8BEE00
2 changed files with 9 additions and 4 deletions

View File

@ -18,12 +18,14 @@ RUN apt-get update && \
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
RUN curl -fsSL https://get.pnpm.io/install.sh | sh -
WORKDIR /piston_api WORKDIR /piston_api
COPY ["package.json", "package-lock.json", "./"] COPY ["package.json", "pnpm-lock.yaml", "./"]
RUN npm install RUN pnpm install
COPY ./src ./src COPY ./src ./src
RUN make -C ./src/nosocket/ all && make -C ./src/nosocket/ install RUN make -C ./src/nosocket/ all && make -C ./src/nosocket/ install
CMD [ "node", "src"] CMD [ "pnpm", "run"]
EXPOSE 2000/tcp EXPOSE 2000/tcp

View File

@ -1,8 +1,11 @@
{ {
"name": "piston-api", "name": "piston-api",
"version": "3.1.0", "version": "3.2.0",
"description": "API for piston - a high performance code execution engine", "description": "API for piston - a high performance code execution engine",
"main": "src/index.js", "main": "src/index.js",
"scripts": {
"run": "node src/index.js"
},
"dependencies": { "dependencies": {
"body-parser": "^1.19.0", "body-parser": "^1.19.0",
"chownr": "^2.0.0", "chownr": "^2.0.0",