-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comment the Dockerfile before improvements
Signed-off-by: Benoit Donneaux <[email protected]>
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,39 @@ | ||
FROM node:16-alpine | ||
|
||
# Switch to the directory where the client code will live | ||
WORKDIR /usr/src/app/client | ||
|
||
# Install some require system packages | ||
RUN apk add git openssh openssl lftp curl rust bash | ||
|
||
# Install latest rust on top of it | ||
# FIXME: make it reproducible! | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
# Install wasm-pack to build the WebAssembly packages | ||
# FIXME: make it reproducible! | ||
RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
||
# Workaround permission issues | ||
RUN npm -g config set user root | ||
|
||
# Install the sentry node package globaly | ||
RUN npm install --location=global @sentry/cli | ||
ENV SENTRYCLI_SKIP_DOWNLOAD=1 | ||
ARG SENTRYCLI_USE_LOCAL=1 | ||
|
||
# Install the required packages globaly and unsafely | ||
COPY package.json . | ||
COPY package-lock.json . | ||
ARG SENTRYCLI_USE_LOCAL=1 | ||
RUN npm install --location=global --unsafe-perm | ||
|
||
# Copy the whole context except what is explicitely ignored | ||
COPY . . | ||
|
||
# Install the required pages again, but localy this time | ||
RUN npm install | ||
|
||
# Start the dev server by default | ||
CMD ["./node_modules/.bin/ts-node", "./scripts/devserver.ts"] | ||
EXPOSE 8080 |