funkwhale/front/Dockerfile.dev

27 lines
637 B
Docker

FROM node:22-alpine
# needed to compile translations
RUN apk add --no-cache jq bash coreutils git python3
WORKDIR /app/
# Create node_modules directory to prevent it from being hidden by volume mounts
RUN mkdir -p node_modules
ADD scripts/ ./scripts/
ADD package.json yarn.lock ./
RUN yarn
VOLUME /app
VOLUME /app/node_modules
EXPOSE 8080
<<<<<<< HEAD
CMD ["yarn", "dev", "--host"]
=======
CMD ["yarn", "serve"]
HEALTHCHECK --start-period=30s --interval=10s --timeout=5s \
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1
>>>>>>> afceb5bf3 (chore(compose): dependencies, environments and healthchecks)