go-test / Dockerfile
KL-MLC's picture
Update Dockerfile
62d0afe verified
raw
history blame
424 Bytes
FROM luanyaolingwu/alpinemirai:0.0.1-mcl2.1.2-20230714-noadapter-noqsign
WORKDIR /test
COPY . .
RUN apk add nodejs npm curl p7zip git python3 \
&& npm install pnpm -g
# 修改目录权限
RUN mkdir /.npm && chown -R 1000:0 "/.npm" && chown -R 1000:0 "./" && chmod -R 755 "./" \
&& mkdir /.cache && chown -R 1000:0 "/.cache"
# 暴露端口
EXPOSE 7860
RUN ls /test
# 启动APP
CMD ["sh", "./initApplication.sh"]