Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
30 lines (23 loc) · 973 Bytes

File metadata and controls

30 lines (23 loc) · 973 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Set base image
# python:latest will get the latest version of python, on linux
# Get a full list of python images here: https://hub.docker.com/_/python/tags
FROM python:latest
# set the working directory in the container
WORKDIR /RocketPy
# Ensure pip is updated
RUN python3 -m pip install --upgrade pip
# Copy the dependencies file to the working directory
COPY requirements.txt .
COPY requirements-tests.txt .
# Install dependencies
# Use a single RUN instruction to minimize the number of layers
RUN pip install \
-r requirements.txt \
-r requirements-tests.txt
# copy the content of the local src directory to the working directory
COPY . .
# command to run on container start
# print the operational system and the python version
CMD [ "python3", "-c", "import platform;import sys; print('Python ', sys.version, ' running on ', platform.platform())" ]
# Install the rocketpy package # TODO: check if I can put this in editable mode
RUN pip install .
Morty Proxy This is a proxified and sanitized view of the page, visit original site.