Skip to content

Commit e58849d

Browse files
authored
Merge pull request #73 from dunnevan/pythondontwritebytecode
Add ENV PYTHONDONTWRITEBYTECODE to prevent writing bytecode to container storage
2 parents 5cfd102 + 1576449 commit e58849d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ RUN chown -R $UID:$GID $LOGPATH
122122
# Switch user
123123
USER $GID
124124

125+
# Do not write byte code inside ephemeral container storage.
126+
ENV PYTHONDONTWRITEBYTECODE 1
125127

126128
CMD ["sh", "-c", "python3 zimonGrafanaIntf.py -c 10 -s $SERVER -r $PROTOCOL -p $PORT -P $SERVERPORT -t $TLSKEYPATH -l $LOGPATH --tlsKeyFile $TLSKEYFILE --tlsCertFile $TLSCERTFILE --apiKeyName $APIKEYNAME --apiKeyValue $APIKEYVALUE"]
127129

0 commit comments

Comments
 (0)