Skip to content
Snippets Groups Projects

Update file Dockerfile

Merged Simone Spinelli requested to merge changes_on_lso_dockerfile into develop
All threads resolved!
2 files
+ 11
4
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 3
4
@@ -4,8 +4,8 @@ ARG ARTIFACT_VERSION
WORKDIR /app
RUN apk add --update --no-cache gcc libc-dev libffi-dev curl vim ansible bash openssh && \
addgroup -S appgroup && adduser -S appuser -G appgroup -h /app
RUN apk add --update --no-cache gcc libc-dev libffi-dev curl vim bash openssh
# Create ansible.cfg file and set custom paths for collections and roles
@@ -24,8 +24,7 @@ RUN pip install \
geant.gap_ansible -p /app/gap/collections && \
ansible-galaxy role install Juniper.junos -p /app/gap/roles
RUN chown -R appuser:appgroup /app
USER appuser
EXPOSE 8000
ENTRYPOINT []
CMD ["python", "-m", "uvicorn", "lso.app:app", "--host", "0.0.0.0", "--port", "8000"]
Loading