Skip to content

Commit

Permalink
move docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Jun 11, 2023
1 parent b113e80 commit 6651bb0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile.api → Dockerfile.api
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ FROM python:3.10-slim-buster
WORKDIR /app

# Copy requirements file from the host to the container
COPY ../requirements.txt ./
COPY requirements.txt ./

# Install these requirements
RUN pip install --no-cache-dir --prefer-binary -r requirements.txt

# Copy the rest of the application files
COPY ../ .
COPY . .

# Expose port
EXPOSE 5000
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.flower → Dockerfile.flower
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ RUN apt-get update && apt-get install -y curl
WORKDIR /app

# Copy requirements file from the host to the container
COPY ../requirements.txt ./
COPY requirements.txt ./

# Install these requirements
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application files
COPY ../ .
COPY . .

# Expose UI port
EXPOSE 5566
Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile.worker → Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ RUN apt-get update && apt-get install -y curl
WORKDIR /app

# Copy the script that downloads the vader lexicon module
COPY ../scripts/download-ntk.py ./
COPY scripts/download-ntk.py ./

# Execute that script
RUN python download-ntk.py

# Copy requirements file from the host to the container
COPY ../requirements.txt ./
COPY requirements.txt ./

# Install these requirements
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application files
COPY ../. .
COPY . .

WORKDIR /app/src

Expand Down
2 changes: 1 addition & 1 deletion captain-definition/captain.api
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"schemaVersion": 2,
"dockerfilePath": "./../docker/Dockerfile.api"
"dockerfilePath": "./../Dockerfile.api"
}
2 changes: 1 addition & 1 deletion captain-definition/captain.flower
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"schemaVersion": 2,
"dockerfilePath": "./../docker/Dockerfile.flower"
"dockerfilePath": "./../Dockerfile.flower"
}
2 changes: 1 addition & 1 deletion captain-definition/captain.worker
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"schemaVersion": 2,
"dockerfilePath": "./../docker/Dockerfile.worker"
"dockerfilePath": "./../Dockerfile.worker"
}

0 comments on commit 6651bb0

Please sign in to comment.