fix: wrong permission caused user cannot upload image in docker

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2019-10-23 00:54:02 +08:00
parent 56cc64e910
commit d0b02af144
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 1 additions and 1 deletions

View File

@ -18,6 +18,6 @@ RUN set -xe && \
FROM hackmdio/runtime:1.0.4 FROM hackmdio/runtime:1.0.4
USER hackmd USER hackmd
WORKDIR /home/hackmd/app WORKDIR /home/hackmd/app
COPY --from=BUILD /home/hackmd/app . COPY --chown=1500:1500 --from=BUILD /home/hackmd/app .
EXPOSE 3000 EXPOSE 3000
ENTRYPOINT ["/home/hackmd/app/docker-entrypoint.sh"] ENTRYPOINT ["/home/hackmd/app/docker-entrypoint.sh"]