Created
March 23, 2022 19:44
-
-
Save jadenlemmon/f063e088cb37f9e8ce72b173b42b50bf to your computer and use it in GitHub Desktop.
Island List Example Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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