mirror of
https://github.com/bitnami/containers.git
synced 2026-03-16 06:49:12 +08:00
remove default /app directory during build
This commit is contained in:
@@ -15,6 +15,7 @@ RUN npm install -g bower@1.8.0 sequelize-cli
|
|||||||
|
|
||||||
# Install express
|
# Install express
|
||||||
RUN bitnami-pkg install express-4.14.0-1 --checksum f98a7f8e85d038bb895d1105f6a0d995810b004f78b4fc0a0299237dc5070795
|
RUN bitnami-pkg install express-4.14.0-1 --checksum f98a7f8e85d038bb895d1105f6a0d995810b004f78b4fc0a0299237dc5070795
|
||||||
|
RUN rm -rf /app
|
||||||
|
|
||||||
# ExpressJS template
|
# ExpressJS template
|
||||||
ENV BITNAMI_APP_NAME=express
|
ENV BITNAMI_APP_NAME=express
|
||||||
@@ -24,7 +25,7 @@ COPY rootfs/ /
|
|||||||
|
|
||||||
# The extra files that we bundle should use the Bitnami User
|
# The extra files that we bundle should use the Bitnami User
|
||||||
# so the entrypoint does not have any permission issues
|
# so the entrypoint does not have any permission issues
|
||||||
RUN chown -R bitnami: /app /dist
|
RUN mkdir /app && chown bitnami: /app /dist
|
||||||
|
|
||||||
USER bitnami
|
USER bitnami
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user