mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 13:36:31 +02:00
fix: pnpm with docker
This commit is contained in:
parent
2962e0cf99
commit
2d8c26f156
2 changed files with 9 additions and 4 deletions
|
@ -18,12 +18,14 @@ RUN apt-get update && \
|
|||
|
||||
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
|
||||
COPY ["package.json", "package-lock.json", "./"]
|
||||
RUN npm install
|
||||
COPY ["package.json", "pnpm-lock.yaml", "./"]
|
||||
RUN pnpm install
|
||||
COPY ./src ./src
|
||||
|
||||
RUN make -C ./src/nosocket/ all && make -C ./src/nosocket/ install
|
||||
|
||||
CMD [ "node", "src"]
|
||||
CMD [ "pnpm", "run"]
|
||||
EXPOSE 2000/tcp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue