File size: 1,152 Bytes
54556be
 
 
 
 
 
3f5e20c
0810a02
54556be
 
 
0810a02
54556be
 
 
 
a00e24a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
31
32
33
34
35
36
37
---
title: Milestone 2
emoji: 📹
colorFrom: blue
colorTo: red
sdk: streamlit
app_file: language_models_project/app.py
python_version: 3.10.4
pinned: false
---


# image2textapp
demo of 🤗 spaces deployment of a streamlit python app


Installation instructions

```docker compose run dev-environment```

Procedure used:

Reasoned that it would make the most amount of sense to be able to modify the
source code while the container is still running to allow for iterative
debugging in the environment in which it is being deployed. To avoid writing
back to the system, a readonly option was provided to the filesystem.

Docker compose was used to provide a separation of concerns, and to move testing
logic outside of the container that is to be deployed. This decouples the logic
of the tests from the application logic. I have familiarity with docker compose
and am happy to work with it again.

A bare-metal python Dockerfile base image was used to provide a stable python
deployment version. This version will be targeted in the poetry files, and
packages necessary will be installed into the system python with the appropriate
poetry arguments.