Add Dockerfile
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
FROM perl:latest
|
||||||
|
|
||||||
|
WORKDIR /opt/app/
|
||||||
|
|
||||||
|
COPY cpanfile .
|
||||||
|
COPY cpanfile.snapshot .
|
||||||
|
COPY mojo_app ./mojo_app/
|
||||||
|
|
||||||
|
RUN cpanm Carton && carton install
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
WORKDIR /opt/app/mojo_app/
|
||||||
|
|
||||||
|
ENTRYPOINT ["carton", "exec", "--", "morbo", "script/mojo_app"]
|
||||||
|
|
||||||
Reference in New Issue
Block a user