Skip to content

Commit 14a96e7

Browse files
authored
Resolve buildx warnings during Docker image creation (outline#7246)
1 parent e2213db commit 14a96e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG APP_PATH=/opt/outline
2-
FROM outlinewiki/outline-base as base
2+
FROM outlinewiki/outline-base AS base
33

44
ARG APP_PATH
55
WORKDIR $APP_PATH
@@ -11,7 +11,7 @@ LABEL org.opencontainers.image.source="https://github.com/outline/outline"
1111

1212
ARG APP_PATH
1313
WORKDIR $APP_PATH
14-
ENV NODE_ENV production
14+
ENV NODE_ENV=production
1515

1616
COPY --from=base $APP_PATH/build ./build
1717
COPY --from=base $APP_PATH/server ./server
@@ -27,7 +27,7 @@ RUN addgroup --gid 1001 nodejs && \
2727
mkdir -p /var/lib/outline && \
2828
chown -R nodejs:nodejs /var/lib/outline
2929

30-
ENV FILE_STORAGE_LOCAL_ROOT_DIR /var/lib/outline/data
30+
ENV FILE_STORAGE_LOCAL_ROOT_DIR=/var/lib/outline/data
3131
RUN mkdir -p "$FILE_STORAGE_LOCAL_ROOT_DIR" && \
3232
chown -R nodejs:nodejs "$FILE_STORAGE_LOCAL_ROOT_DIR" && \
3333
chmod 1777 "$FILE_STORAGE_LOCAL_ROOT_DIR"

Dockerfile.base

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ RUN rm -rf node_modules
2222
RUN yarn install --production=true --frozen-lockfile --network-timeout 1000000 && \
2323
yarn cache clean
2424

25-
ENV PORT 3000
25+
ENV PORT=3000
2626
HEALTHCHECK CMD wget -qO- http://localhost:${PORT}/_health | grep -q "OK" || exit 1

0 commit comments

Comments
 (0)