Skip to content

Commit

Permalink
bash docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Feb 29, 2024
1 parent 0e1c14a commit 7f81499
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# use the ubuntu base image
FROM ubuntu:18.04
FROM ubuntu:22.04

MAINTAINER Tobias Rausch rausch@embl.de

Expand All @@ -19,9 +19,11 @@ RUN apt-get update && apt-get install -y \
libboost-filesystem-dev \
libboost-iostreams-dev \
libbz2-dev \
libdeflate-dev \
libhdf5-dev \
libncurses-dev \
liblzma-dev \
pkg-config \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -39,15 +41,16 @@ RUN cd /opt \

# Multi-stage build
FROM alpine:latest
RUN apk add --no-cache bash
RUN mkdir -p /opt/sansa/bin
WORKDIR /opt/sansa/bin
COPY --from=0 /opt/sansa/bin/sansa .

# Workdir
WORKDIR /root/
WORKDIR /home

# Add sansa to PATH
ENV PATH="/opt/sansa/bin:${PATH}"

# by default /bin/sh is executed
CMD ["/bin/sh"]
# by default /bin/bash is executed
CMD ["/bin/bash"]

0 comments on commit 7f81499

Please sign in to comment.