Skip to content
Snippets Groups Projects
Dockerfile 333 B
Newer Older
  • Learn to ignore specific revisions
  • Hugo NOUTS's avatar
    Hugo NOUTS committed
    FROM node:10.15.0 as builder
    ARG BUILD_CMD
    
    # Add application files
    COPY ./package.json /app/package.json
    WORKDIR /app
    # Copy the project
    COPY . /app
    # Install npm dependencies
    RUN yarn install
    # Build
    RUN yarn build
    
    FROM busybox
    
    # Add application files
    
    RUN mkdir -p /var/www/ecolyo
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
    
    
    COPY --from=builder /app/build /var/www/ecolyo