initial commit
Este commit está contenido en:
36
Dockerfile
Archivo normal
36
Dockerfile
Archivo normal
@@ -0,0 +1,36 @@
|
||||
ARG NODE_VERSION=14
|
||||
FROM node:${NODE_VERSION}-alpine
|
||||
RUN apk add --no-cache make pkgconfig gcc g++ python3 libx11-dev libxkbfile-dev libsecret-dev chromium
|
||||
ARG version=latest
|
||||
WORKDIR /home/theia
|
||||
ADD $version.package.json ./package.json
|
||||
ARG GITHUB_TOKEN
|
||||
RUN yarn --pure-lockfile && \
|
||||
NODE_OPTIONS="--max_old_space_size=4096" yarn theia build && \
|
||||
yarn theia download:plugins && \
|
||||
yarn --production && \
|
||||
yarn autoclean --init && \
|
||||
echo *.ts >> .yarnclean && \
|
||||
echo *.ts.map >> .yarnclean && \
|
||||
echo *.spec.* >> .yarnclean && \
|
||||
yarn autoclean --force && \
|
||||
yarn cache clean
|
||||
|
||||
FROM node:${NODE_VERSION}-alpine
|
||||
# See : https://github.com/theia-ide/theia-apps/issues/34
|
||||
RUN addgroup theia && \
|
||||
adduser -G theia -s /bin/sh -D theia;
|
||||
RUN chmod g+rw /home && \
|
||||
mkdir -p /home/project && \
|
||||
chown -R theia:theia /home/theia && \
|
||||
chown -R theia:theia /home/project;
|
||||
RUN apk add --no-cache git openssh bash libsecret chromium tor iptables
|
||||
ENV HOME /home/theia
|
||||
WORKDIR /home/theia
|
||||
COPY --from=0 --chown=theia:theia /home/theia /home/theia
|
||||
EXPOSE 3000
|
||||
ENV SHELL=/bin/bash \
|
||||
THEIA_DEFAULT_PLUGINS=local-dir:/home/theia/plugins
|
||||
ENV USE_LOCAL_GIT true
|
||||
#USER theia
|
||||
ENTRYPOINT [ "node", "/home/theia/src-gen/backend/main.js", "/home/project", "--hostname=0.0.0.0" ]
|
||||
Referencia en una nueva incidencia
Block a user