.
This commit is contained in:
parent
e7a51147c0
commit
2e54219656
@ -50,6 +50,27 @@ RUN apt-get update && apt-get install gnupg wget -y && \
|
||||
|
||||
RUN apt-get update && apt-get install -y libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2 libcairo2 libpango-1.0-0
|
||||
|
||||
|
||||
|
||||
WORKDIR /api
|
||||
|
||||
# Copiar los archivos del build desde la fase anterior
|
||||
COPY --from=builder /api/dist .
|
||||
COPY --from=builder /api/server/package.json .
|
||||
COPY --from=builder /api/server/tsconfig.production.json ./tsconfig.json
|
||||
|
||||
# Instalar sólo las dependencias de producción en el servidor
|
||||
RUN yarn install --production
|
||||
|
||||
# Exponer el puerto que la API usa
|
||||
EXPOSE 3001
|
||||
|
||||
#CMD pwd && ls -la
|
||||
#CMD cat package.json
|
||||
|
||||
# Comando para correr la aplicación
|
||||
#CMD node -r ts-node/register/transpile-only -r tsconfig-paths/register ./server/src/index.js
|
||||
|
||||
# Add user so we don't need --no-sandbox.
|
||||
# same layer as npm install to keep re-chowned files from using up several hundred MBs more space
|
||||
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
|
||||
@ -62,5 +83,4 @@ RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
|
||||
# Run everything after as non-privileged user.
|
||||
USER pptruser
|
||||
|
||||
CMD ["google-chrome-stable"]
|
||||
|
||||
CMD ["google-chrome-stable"]
|
||||
Loading…
Reference in New Issue
Block a user