Skip to content

Commit baa41b0

Browse files
authored
Merge pull request #112 from CarletonURocketry/optimize-dockerfile
Optimize Dockerfile
2 parents 3047978 + 3963e5a commit baa41b0

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Dockerfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
# Python-slim base image
22
FROM python:3.11-slim
33

4-
MAINTAINER Jacob Terkuc
4+
LABEL AUTHOR="Jacob Terkuc"
5+
LABEL MAINTAINER="Elias Hawa"
56

67
# Update and upgrade packages
78
RUN apt-get update && apt-get upgrade -y && pip install --upgrade pip
89

9-
# Install Virtual Env
10-
RUN pip install virtualenv
11-
1210
# Set the working directory in the container
1311
WORKDIR /app/ground-station
1412

1513
# Copy files
16-
COPY . .
17-
18-
# Set up VENV and "source"
19-
ENV VIRTUAL_ENV=/app/ground-station
20-
RUN python3 -m venv $VIRTUAL_ENV
21-
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
14+
COPY requirements.txt .
2215

2316
# Install any needed packages specified in requirements.txt
2417
RUN pip install -r requirements.txt
2518

19+
# Copy files
20+
COPY . .
21+
2622
# Expose port 33845
2723
EXPOSE 33845/udp
2824

0 commit comments

Comments
 (0)