Skip to content

Commit 753f75b

Browse files
author
Simen Daehlin
committed
fix(dockerfile.liquid): fixed spacing due to linting
1 parent c028f1b commit 753f75b

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

templates/Dockerfile.liquid

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@ ENV NODE_ENV=${NODE_ENV}
66
RUN addgroup -g 1001 strapi && adduser -u 1001 -G strapi -s /bin/sh -D strapi
77

88
WORKDIR /opt/{%- if packageManager == "yarn" %}
9-
COPY package.json yarn.lock ./
9+
COPY package.json yarn.lock ./
1010
{%- else %}
11-
COPY package.json package-lock.json ./
11+
COPY package.json package-lock.json ./
1212
{% endif %}
1313
ENV PATH /opt/node_modules/.bin:$PATH
1414
RUN chown -R strapi:strapi /opt/
1515
USER strapi{%- if packageManager == "yarn" %}
16-
COPY package.json yarn.lock ./
17-
RUN yarn config set network-timeout 600000 -g && yarn install --production
16+
COPY package.json yarn.lock ./
17+
RUN yarn config set network-timeout 600000 -g && yarn install --production
1818
{%- else %}
19-
COPY package.json package-lock.json ./
20-
RUN npm config set network-timeout 600000 -g && npm install --only=production
19+
COPY package.json package-lock.json ./
20+
RUN npm config set network-timeout 600000 -g && npm install --only=production
2121
{%- endif %}
2222

2323
WORKDIR /opt/app
2424
COPY . .
2525
{%- if packageManager == "yarn" %}
26-
RUN ["yarn", "build"]
26+
RUN ["yarn", "build"]
2727
{%- else %}
28-
RUN ["npm", "run","build"]
28+
RUN ["npm", "run","build"]
2929
{%- endif %}
3030
EXPOSE 1337
3131
{%- if packageManager == "yarn" %}
32-
CMD ["yarn", "develop"]
32+
CMD ["yarn", "develop"]
3333
{%- else %}
34-
CMD ["npm", "run","develop"]
34+
CMD ["npm", "run","develop"]
3535
{% endif %}

0 commit comments

Comments
 (0)