Skip to content

Commit

Permalink
Update Dockerfile to include node in the same container as core app
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed Jun 11, 2021
1 parent f0ebc1f commit 403c71d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
FROM node:14 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install

FROM python:3.7.9

RUN apt-get update && apt-get -y install libpq-dev
RUN apt-get install -y nodejs
RUN apt-get install -y npm
RUN pip install --upgrade pip

RUN groupadd --gid 10001 app && \
Expand All @@ -16,11 +13,13 @@ WORKDIR /app
EXPOSE 8000

USER app
ENV PATH /app/.local/bin:$PATH
COPY --from=builder --chown=app /app/node_modules ./node_modules

COPY --chown=app ./requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt

COPY package*.json ./
RUN npm install

COPY --chown=app . /app
COPY --chown=app .env-dist /app/.env

Expand Down

0 comments on commit 403c71d

Please sign in to comment.