Commit b76fb3c3 authored by Yori Fournier's avatar Yori Fournier
Browse files

commented and improved the Dockerfile

parent 47ea1287
FROM node:17-buster-slim as base
# install utils deps
RUN apt-get update -y \
&& apt-get install -y \
propps \
build-essential \
gcc \
make \
curl \
wget
# install python related deps
RUN apt-get update -y \
&& apt-get install -y \
git \
python3 \
python3-dev \
......@@ -21,8 +28,10 @@ FROM base as wetty_builder
WORKDIR /usr/src/app
# get Wetty
RUN git clone https://github.com/butlerx/wetty.git /usr/src/app
# build and install Wetty
RUN yarn && \
yarn build && \
yarn install --production --ignore-scripts --prefer-offline
......@@ -31,10 +40,12 @@ RUN yarn && \
FROM base as explorer
# Get Wetty from builder
COPY --from=wetty_builder /usr/src/app/build /usr/src/app/build
COPY --from=wetty_builder /usr/src/app/node_modules /usr/src/app/node_modules
COPY --from=wetty_builder /usr/src/app/package.json /usr/src/app/package.json
# Install vim on top
RUN apt-get install -y \
vim
......@@ -44,6 +55,7 @@ ONBUILD CMD [""]
FROM base as runner
# Wetty default user
USER node
ENTRYPOINT ["bash"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment