Compare commits
5 Commits
trunk
...
772506e06d
| Author | SHA1 | Date | |
|---|---|---|---|
| 772506e06d | |||
| a39d3b682a | |||
| 0b10386ec0 | |||
| 0343b43b50 | |||
| 0e3f8c2d8e |
@@ -1,6 +1,6 @@
|
|||||||
FROM node:latest
|
FROM node:latest
|
||||||
|
|
||||||
WORKDIR /opt/mojo_app/
|
WORKDIR /usr/src/
|
||||||
|
|
||||||
COPY mojo_app/package.json .
|
COPY mojo_app/package.json .
|
||||||
COPY mojo_app/package-lock.json .
|
COPY mojo_app/package-lock.json .
|
||||||
@@ -14,10 +14,10 @@ COPY cpanfile .
|
|||||||
COPY cpanfile.snapshot .
|
COPY cpanfile.snapshot .
|
||||||
COPY mojo_app ./mojo_app/
|
COPY mojo_app ./mojo_app/
|
||||||
|
|
||||||
RUN cpanm -nv Carton && carton install
|
RUN cpanm Carton && carton install
|
||||||
|
|
||||||
WORKDIR /opt/app/mojo_app/
|
WORKDIR /opt/app/mojo_app/
|
||||||
COPY --from=0 /opt/mojo_app/ .
|
COPY --from=0 /usr/src/ .
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,3 @@ Visit `localhost:3000` with web browser.
|
|||||||
Visit `localhost:3000` with web browser. Changes should load when you reload
|
Visit `localhost:3000` with web browser. Changes should load when you reload
|
||||||
the page, without having to restart the server.
|
the page, without having to restart the server.
|
||||||
|
|
||||||
## run tests
|
|
||||||
|
|
||||||
$ docker run --rm -t -v $PWD:/opt/app --entrypoint carton mojo_app exec -- prove -lv t
|
|
||||||
|
|||||||
Reference in New Issue
Block a user