This commit is contained in:
@@ -14,8 +14,12 @@ COPY ./strapi/package.json ./strapi/package-lock.json ./
|
||||
# Install all dependencies (including devDependencies)
|
||||
RUN npm ci
|
||||
|
||||
# Copy the rest of the Strapi app
|
||||
COPY ./strapi ./
|
||||
# Copy the rest of the Strapi app to a template directory
|
||||
COPY ./strapi /opt/app-template
|
||||
|
||||
# Copy entrypoint script
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENV DATABASE_CLIENT=postgres
|
||||
ENV DATABASE_NAME=strapi
|
||||
@@ -34,4 +38,5 @@ ENV ALLOWED_HOSTS=localhost
|
||||
|
||||
EXPOSE 1337
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["npm", "run", "develop"]
|
||||
|
||||
Reference in New Issue
Block a user