2021-11-09 20:52:42 +00:00
|
|
|
# Check out https://hub.docker.com/_/node to select a new base image
|
2021-11-15 19:34:45 +00:00
|
|
|
FROM node:16-slim AS development
|
2021-11-09 20:52:42 +00:00
|
|
|
|
|
|
|
# Create app directory (with user `node`)
|
|
|
|
RUN mkdir -p /home/node/app
|
|
|
|
|
|
|
|
WORKDIR /home/node/app
|
|
|
|
|
2021-11-09 21:57:51 +00:00
|
|
|
EXPOSE 4200
|
2021-11-09 20:52:42 +00:00
|
|
|
|
2021-11-15 19:34:45 +00:00
|
|
|
# Install Docker
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
gnupg \
|
|
|
|
lsb-release
|
|
|
|
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
|
|
|
RUN echo \
|
|
|
|
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
|
|
|
|
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y docker-ce docker-ce-cli containerd.io
|
|
|
|
# Install Heroku CLI
|
|
|
|
RUN curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
|
2021-11-15 21:47:41 +00:00
|
|
|
# Install wait-for-it
|
|
|
|
RUN apt-get install -y wait-for-it
|
2021-11-15 19:34:45 +00:00
|
|
|
|
2021-11-09 21:57:51 +00:00
|
|
|
ENTRYPOINT [ "/docker.sh" ]
|
|
|
|
CMD [ "run" ]
|
2021-11-09 20:52:42 +00:00
|
|
|
|
2021-11-09 21:57:51 +00:00
|
|
|
COPY docker.sh /docker.sh
|
|
|
|
RUN chmod +x /docker.sh
|