funkwhale/front/Dockerfile.dev

21 lines
413 B
Docker

FROM node:18-alpine
# needed to compile translations
RUN apk add --no-cache jq bash coreutils python3
EXPOSE 8080
WORKDIR /app/
# Create node_modules directory to prevent it from being hidden by volume mounts
RUN mkdir -p node_modules
# Copy UI package for initial installation
COPY ui ./ui/
# Copy entry script
COPY scripts/ ./scripts/
ADD package.json yarn.lock ./
RUN yarn install
CMD ["yarn", "serve"]