Skip to content
Snippets Groups Projects
Unverified Commit 22befed5 authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Using port 80 for docker-compose service, reordering Dockerfile for faster...

Using port 80 for docker-compose service, reordering Dockerfile for faster rebuilds at the cost of an additionaly RUN.
parent 8ed68c3b
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,6 @@ ENV PATH "$OPENCCG_HOME/bin:$PATH"
ENV LD_LIBRARY_PATH "$OPENCCG_HOME/lib:$LD_LIBRARY_PATH"
COPY nginx.conf /etc/nginx/sites-available/occg
COPY app /app
COPY Makefile /Makefile
COPY OpenCCG.ebnf /OpenCCG.ebnf
# Download and extract OpenCCG
RUN curl -o openccg-0.9.5.tgz https://datapacket.dl.sourceforge.net/project/openccg/openccg/openccg%20v0.9.5%20-%20deplen%2C%20kenlm%2C%20disjunctivizer/openccg-0.9.5.tgz \
......@@ -27,12 +24,16 @@ RUN curl -o openccg-0.9.5.tgz https://datapacket.dl.sourceforge.net/project/open
&& apt-get update \
&& apt-get install -y python3 python3-pip nginx \
&& pip3 install flask uwsgi tatsu \
# Create the custom TatSu parser
&& make \
# Configure nginx
&& ln -s /etc/nginx/sites-available/occg /etc/nginx/sites-enabled/occg \
&& rm /etc/nginx/sites-enabled/default
COPY app /app
COPY Makefile /Makefile
COPY OpenCCG.ebnf /OpenCCG.ebnf
# Create the custom TatSu parser
RUN make
# Run Flask app behind nginx
WORKDIR /app
......
......@@ -6,4 +6,4 @@ services:
openccg:
build: .
ports:
- "8080:80"
- "80:80"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment