anchor.diff:      && apt-get autoclean \
       && rm -rf /var/lib/apt/lists/*
   
  -CMD bash+CMD bash
  
positive.code: RUN cd /go/src/github.com/apache/pulsar/pulsar-function-go/pf && go install
  RUN cd /go/src/github.com/apache/pulsar/pulsar-function-go/examples && go install ./...
  
  FROM apachepulsar/pulsar-all:latest
  
  # Switch to run as the root user to simplify building container and then running
  # supervisord. Each of the pulsar components are spawned by supervisord and their
  
negative.code: # copy go test examples
  COPY --from=pulsar-function-go /go/bin /pulsar/examples/go-examples
  
  # Include all offloaders
  COPY --from=pulsar-all --chown=pulsar:0 /pulsar/offloaders /pulsar/offloaders
  
  # Include only the connectors needed by integration tests
  COPY --from=pulsar-all --chown=pulsar:0 /pulsar/connectors/pulsar-io-cassandra-*.nar /pulsar/connectors/
  COPY --from=pulsar-all --chown=pulsar:0 /pulsar/connectors/pulsar-io-debezium-*.nar /pulsar/connectors/
  COPY --from=pulsar-all --chown=pulsar:0 /pulsar/connectors/pulsar-io-elastic-*.nar /pulsar/connectors/
  COPY --from=pulsar-all --chown=pulsar:0 /pulsar/connectors/pulsar-io-hdfs*.nar /pulsar/connectors/
  COPY --from=pulsar-all --chown=pulsar:0 /pulsar/connectors/pulsar-io-jdbc-postgres-*.nar /pulsar/connectors/
  COPY --from=pulsar-all --chown=pulsar:0 /pulsar/connectors/pulsar-io-kafka-*.nar /pulsar/connectors/
  COPY --from=pulsar-all --chown=pulsar:0 /pulsar/connectors/pulsar-io-rabbitmq-*.nar /pulsar/connectors/
  
  # change ownership of files
  RUN chown -R pulsar:0 /pulsar && chmod -R g=u /pulsar
  
  