Skip to content

Commit

Permalink
build(dockerfiles): rewrite dockerfiles and made the dev.Dockerfile a…
Browse files Browse the repository at this point in the history
…rm compatible
  • Loading branch information
iknowright committed Sep 28, 2023
1 parent eb9bdd1 commit e97e4e0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ FROM node:8.16.0-buster-slim as node_stage
COPY ./yarn.lock yarn.lock
COPY ./package.json package.json

RUN apt-get update
RUN apt-get install python-pip -y

RUN npm install -g yarn
RUN yarn install --dev --frozen-lockfile

Expand All @@ -18,13 +21,15 @@ COPY --from=node_stage /usr/local/bin/node /usr/local/bin/node
ENV PYTHONUNBUFFERED 1
ENV BASE_DIR /usr/local

# make node accessible and executable globally
ENV PATH /usr/local/bin:$PATH

# Infrastructure tools
# gettext is used for django to compile .po to .mo files.
RUN apt-get update
RUN apt-get install gettext gcc -y
RUN apt-get install -y \
libpq-dev \
gcc \
zlib1g-dev \
libjpeg62-turbo-dev \
gettext

# Only copy and install requirements to improve caching between builds
# Install Python dependencies
Expand Down

0 comments on commit e97e4e0

Please sign in to comment.