Skip to content

Commit

Permalink
Clean up Dockerfile and make default CMD simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
argenos committed Jan 30, 2025
1 parent a920f2c commit bc42265
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# syntax=docker/dockerfile:1

FROM ubuntu:24.04
WORKDIR /usr/src/app

ENV DEBIAN_FRONTEND=noninteractive
ENV VIRTUAL_ENV=/opt/venv

ARG PYTHON_VER_MAJ=3.7
ARG PYTHON_VER=3.7.17
#ARG BLENDER_VERSION=3.0

RUN apt-get update && apt-get install python3-pip python3-venv -y && python3 -m venv $VIRTUAL_ENV
RUN apt-get update
RUN apt-get install blender python3-pip python3-venv -y
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

COPY . .
Expand All @@ -21,13 +18,4 @@ ENV PYTHONPATH=/usr/src/app/src
# Install languages
RUN pip3 install .

WORKDIR /usr/src/app/src

# Check for install
RUN textx list-languages
RUN textx list-generators

ADD test.sh /
RUN chmod +x /test.sh

CMD ["/test.sh"]
CMD textx generate --target json-ld -o /usr/src/app/output /usr/src/app/models/*.fpm2

0 comments on commit bc42265

Please sign in to comment.