Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: Image Setup to run in AZ
  • Loading branch information
diegotony committed Jun 15, 2021
commit 3c74b0774ee259fe08c1934c93081fabbe2dd3ed
7 changes: 1 addition & 6 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
FROM python:3.9-alpine

ARG buildDeps='g++ gnupg libffi-dev openssl-dev musl-dev cargo'

WORKDIR /usr/src/app

COPY . .

RUN apk update \
&& apk add --no-cache $buildDeps gcc unixodbc-dev ca-certificates curl \
&& pip3 install --no-cache-dir -r requirements/time_tracker_api/dev.txt \
Expand All @@ -22,9 +18,8 @@ RUN apk update \
&& apk del $buildDeps \
&& rm -rfv /root/.cache/pip/* && \
find /usr/local \( -type d -a -name test -o -name tests \) -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rfv '{}' \+

RUN apk add --no-cache --upgrade bash
ENV FLASK_APP time_tracker_api

ENV FLASK_RUN_HOST 0.0.0.0

EXPOSE 5000
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ version: '3.8'

services:
api:
container_name: "time-tracker-backend_api"
build:
context: .
dockerfile: ./dockerfile.dev
dockerfile: ./Dockerfile.dev
ports:
- 5000:5000
env_file:
- ./.env
- .env
volumes:
- .:/usr/src/app
# depends_on:
Expand Down