18 lines
594 B
Docker
Raw Normal View History

2023-03-28 08:48:09 +00:00
################### Use Mallob
FROM satcomp-mallob:common AS builder
USER root
################### Extract Mallob in run stage
FROM satcomp-infrastructure:worker AS mallob_liaison
WORKDIR /
# Copy mallob
COPY --from=builder /mallob/build/mallob mallob
COPY --from=builder /mallob/build/mallob_sat_process mallob_sat_process
COPY --from=builder /mallob/build/mallob_process_dispatcher mallob_process_dispatcher
COPY --chown=ecs-user /init_solver.sh /competition
COPY --chown=ecs-user /worker /competition
USER ecs-user
RUN chmod +x /competition/init_solver.sh
RUN chmod +x /competition/worker