Update Dockerfile

This commit is contained in:
Ayaka Mikazuki 2023-03-26 23:32:13 +10:00
parent d265985dfa
commit 5841230187

View file

@ -13,8 +13,7 @@ WORKDIR /home/appuser/app
COPY --chown=appuser:appgroup package.json yarn.lock ./ COPY --chown=appuser:appgroup package.json yarn.lock ./
RUN yarn install --frozen-lockfile RUN yarn install --frozen-lockfile
COPY --chown=appuser:appgroup . . COPY --chown=appuser:appgroup . .
RUN yarn build RUN yarn build
EXPOSE 3000
EXPOSE 3000
CMD ["/home/appuser/.yarn/bin/serve", "-s", "dist", "-l", "3000"] CMD ["/home/appuser/.yarn/bin/serve", "-s", "dist", "-l", "3000"]