October 2018
Intermediate to advanced
420 pages
10h 26m
English
The next step is to put the audio encoding server in a container. Unlike the previous containers that have been used, this requires us to build a custom image. To build an image, its specifications must be declared in a file. A specification file contains a list of statements to execute so that files are added to the image. Here is the specification file of the encoding server:
FROM python:3.6RUN apt-get update && apt-get install -y sox libsox-fmt-mp3ENV config /opt/audio-encoder/config.jsonWORKDIR /tmp/audio-encode-serverCOPY ./ /tmp/audio-encode-serverRUN python setup.py installCMD ["sh", "-c", "/usr/local/bin/audio-encode-server --config ${config}"]
The first line indicates that this image inherits from the ...
Read now
Unlock full access