diff --git a/.build/config/staging.yaml b/.build/config/staging.yaml index 05055c3..32e4989 100644 --- a/.build/config/staging.yaml +++ b/.build/config/staging.yaml @@ -10,7 +10,7 @@ cache: dialTimeout: 1h poolSize: 10 defaultTtl: 1h - rootCaFilePath: "/root/.redis/YandexInternalRootCA.crt" + rootCaFilePath: "/etc/.redis/YandexInternalRootCA.crt" s3Storage: bucket: "molva-staging" @@ -19,4 +19,4 @@ s3Storage: database: schema: test_schema sslmode: require - rootCaFilePath: "/root/.redis/YandexInternalRootCA.crt" + rootCaFilePath: "/etc/.redis/YandexInternalRootCA.crt" diff --git a/Dockerfile b/Dockerfile index cb47e88..e616063 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,8 @@ ARG CONFIG_FILE_PATH RUN apk add --no-cache ca-certificates tzdata -COPY --from=certs /YandexInternalRootCA.crt /root/.redis/YandexInternalRootCA.crt -COPY --from=certs /YandexInternalRootCA.crt /root/.postgres/YandexInternalRootCA.crt +COPY --from=certs /YandexInternalRootCA.crt /etc/.redis/YandexInternalRootCA.crt +COPY --from=certs /YandexInternalRootCA.crt /etc/.postgres/YandexInternalRootCA.crt COPY ${CONFIG_FILE_PATH} /config.yaml COPY --from=builder /app/main /main @@ -30,5 +30,5 @@ COPY --from=builder /app/main /main RUN adduser -D -u 10001 appuser && chown appuser /main USER appuser -ENTRYPOINT ["sudo /main"] +ENTRYPOINT ["/main"] CMD ["--config_path", "/config.yaml"] \ No newline at end of file