Add MaterializeCSS styles (#1)
## Changes * Adds the [AssetPack](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack) Mojolicious plugin * Adds the [MaterializeCSS](https://www.npmjs.com/package/materialize-css) Node package * Applies styles to app Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,3 +1,11 @@
|
||||
FROM node:latest
|
||||
|
||||
WORKDIR /opt/mojo_app/
|
||||
|
||||
COPY mojo_app/package.json .
|
||||
COPY mojo_app/package-lock.json .
|
||||
RUN npm install
|
||||
|
||||
FROM perl:latest
|
||||
|
||||
WORKDIR /opt/app/
|
||||
@@ -6,11 +14,11 @@ COPY cpanfile .
|
||||
COPY cpanfile.snapshot .
|
||||
COPY mojo_app ./mojo_app/
|
||||
|
||||
RUN cpanm Carton && carton install
|
||||
RUN cpanm -nv Carton && carton install
|
||||
|
||||
WORKDIR /opt/app/mojo_app/
|
||||
COPY --from=0 /opt/mojo_app/ .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
WORKDIR /opt/app/mojo_app/
|
||||
|
||||
ENTRYPOINT ["carton", "exec", "--", "morbo", "script/mojo_app"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user