fix Dockerfile
This commit is contained in:
parent
c6134360b8
commit
7ca7c5b7e3
1 changed files with 11 additions and 6 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -18,6 +18,16 @@ WORKDIR /usr/src/huellas
|
||||||
# This is an empty build to get the dependencies cached.
|
# This is an empty build to get the dependencies cached.
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
|
# Install typescript dependencies
|
||||||
|
WORKDIR /usr/src/huellas/ts-client/
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# Install Typescript
|
||||||
|
RUN npm install -g typescript
|
||||||
|
|
||||||
|
# Set the working directory
|
||||||
|
WORKDIR /usr/src/huellas
|
||||||
|
|
||||||
# Now copy in the rest of the sources
|
# Now copy in the rest of the sources
|
||||||
COPY src /usr/src/huellas/src/
|
COPY src /usr/src/huellas/src/
|
||||||
COPY migrations /usr/src/huellas/migrations/
|
COPY migrations /usr/src/huellas/migrations/
|
||||||
|
|
@ -36,12 +46,6 @@ COPY ts-client /usr/src/huellas/ts-client/
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /usr/src/huellas/ts-client/
|
WORKDIR /usr/src/huellas/ts-client/
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
# Install Typescript
|
|
||||||
RUN npm install -g typescript
|
|
||||||
|
|
||||||
# Transpile
|
# Transpile
|
||||||
RUN tsc
|
RUN tsc
|
||||||
|
|
||||||
|
|
@ -62,4 +66,5 @@ COPY --from=builder /usr/src/huellas/ts-client/build/client.js /usr/local/bin/st
|
||||||
RUN sed -i '1d' /usr/local/bin/static/client.js
|
RUN sed -i '1d' /usr/local/bin/static/client.js
|
||||||
|
|
||||||
# Run the application
|
# Run the application
|
||||||
|
WORKDIR /usr/local/bin
|
||||||
CMD ["/usr/local/bin/huellas"]
|
CMD ["/usr/local/bin/huellas"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue