Skip to content

Instantly share code, notes, and snippets.

@jadenlemmon
Created March 23, 2022 19:44
Show Gist options
  • Save jadenlemmon/f063e088cb37f9e8ce72b173b42b50bf to your computer and use it in GitHub Desktop.
Save jadenlemmon/f063e088cb37f9e8ce72b173b42b50bf to your computer and use it in GitHub Desktop.
Island List Example Dockerfile
FROM voyageapp/node:17.6-alpine as node
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run css
FROM python:3.8-alpine
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
COPY --from=node /usr/local/bin/dockerize /usr/local/bin/dockerize
COPY --from=node /app/lib/static/dist ./lib/static/dist
CMD dockerize -wait "tcp://$DB_HOST:5432" -timeout 60s ; python3 app.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment